summaryrefslogtreecommitdiff
path: root/examples/fips_validation/fips_validation.h
diff options
context:
space:
mode:
authorMarko Kovacevic <marko.kovacevic@intel.com>2018-11-02 09:55:30 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2018-11-02 12:26:06 +0100
commitf64adb6714e07daf2a1d4fe3ee3172f3f4a80c07 (patch)
tree164c4d2d888e901a2355484861c2c36dc2d6b5aa /examples/fips_validation/fips_validation.h
parentcd255ccf57647830bfdda8d760dad833f019b76a (diff)
downloaddpdk-f64adb6714e07daf2a1d4fe3ee3172f3f4a80c07.zip
dpdk-f64adb6714e07daf2a1d4fe3ee3172f3f4a80c07.tar.gz
dpdk-f64adb6714e07daf2a1d4fe3ee3172f3f4a80c07.tar.xz
examples/fips_validation: support HMAC parsing
Added enablement for HMAC parser, to allow the application to parser the hmac request files and to validate all tests supported Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Arek Kusztal <arkadiuszx.kusztal@intel.com> Reviewed-by: Akhil Goyal <akhil.goyal@nxp.com>
Diffstat (limited to 'examples/fips_validation/fips_validation.h')
-rw-r--r--examples/fips_validation/fips_validation.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h
index e947de1..f9e3a3b 100644
--- a/examples/fips_validation/fips_validation.h
+++ b/examples/fips_validation/fips_validation.h
@@ -24,6 +24,7 @@
enum fips_test_algorithms {
FIPS_TEST_ALGO_AES = 0,
+ FIPS_TEST_ALGO_HMAC,
FIPS_TEST_ALGO_MAX
};
@@ -93,6 +94,10 @@ struct aesavs_interim_data {
uint32_t key_len;
};
+struct hmac_interim_data {
+ enum rte_crypto_auth_algorithm algo;
+};
+
struct fips_test_interim_info {
FILE *fp_rd;
FILE *fp_wr;
@@ -105,6 +110,7 @@ struct fips_test_interim_info {
union {
struct aesavs_interim_data aes_data;
+ struct hmac_interim_data hmac_data;
} interim_info;
@@ -141,6 +147,9 @@ int
parse_test_aes_init(void);
int
+parse_test_hmac_init(void);
+
+int
parser_read_uint8_hex(uint8_t *value, const char *p);
int