File: fips_dev_self_test.h

package info (click to toggle)
dpdk 25.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 127,892 kB
  • sloc: ansic: 2,358,479; python: 16,426; sh: 4,474; makefile: 1,713; awk: 70
file content (25 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* 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_ */