numam-dpdk/examples/fips_validation/fips_dev_self_test.h
Fan Zhang 41d561cbdd examples/fips_validation: add power on self test
This patch adds a sample power on self-test to fips_validate
sample application.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Damian Nowak <damianx.nowak@intel.com>
2019-01-10 16:57:22 +01:00

26 lines
543 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019 Intel Corporation
*/
#ifndef _CRYPTO_PMD_SELF_TEST_H_
#define _CRYPTO_PMD_SELF_TEST_H_
#include <rte_crypto_sym.h>
enum fips_dev_self_test_dir {
self_test_dir_enc_auth_gen = 0,
self_test_dir_dec_auth_verify,
self_test_dir_max
};
struct fips_dev_broken_test_config {
uint32_t expect_fail_test_idx;
enum fips_dev_self_test_dir expect_fail_dir;
};
int
fips_dev_self_test(uint8_t dev_id,
struct fips_dev_broken_test_config *config);
#endif /* _CRYPTO_PMD_SELF_TEST_H_ */