diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-03-01 13:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 13:56:00 +0200 |
commit | 6c96e7253082bdc5b3a6a6f39a1ced8200a39ee0 (patch) | |
tree | 908bd33aff383744a8cc18e4f8374c22ed61c46c /test/performance/odp_crypto.c | |
parent | 09a1f287c7956b36db8b3320a45e10a22058c269 (diff) | |
parent | 4c9bd497c64a8dada64e205c57c6db7dddacb1ec (diff) |
Merge ODP v1.34.0.0v1.34.0.0_DPDK_19.11
Merge ODP linux-generic v1.34.0.0 into linux-dpdk.
Diffstat (limited to 'test/performance/odp_crypto.c')
-rw-r--r-- | test/performance/odp_crypto.c | 52 |
1 files changed, 12 insertions, 40 deletions
diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index 341782630..d9acfb31e 100644 --- a/test/performance/odp_crypto.c +++ b/test/performance/odp_crypto.c @@ -219,10 +219,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key24, .length = sizeof(test_key24) }, - .cipher_iv = { - .data = test_iv, - .length = 8, - }, + .cipher_iv_len = 8, .auth_alg = ODP_AUTH_ALG_NULL }, }, @@ -234,10 +231,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key24, .length = sizeof(test_key24) }, - .cipher_iv = { - .data = test_iv, - .length = 8, - }, + .cipher_iv_len = 8, .auth_alg = ODP_AUTH_ALG_MD5_HMAC, .auth_key = { .data = test_key16, @@ -266,10 +260,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .cipher_iv = { - .data = test_iv, - .length = 16, - }, + .cipher_iv_len = 16, .auth_alg = ODP_AUTH_ALG_NULL }, }, @@ -281,10 +272,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .cipher_iv = { - .data = test_iv, - .length = 16, - }, + .cipher_iv_len = 16, .auth_alg = ODP_AUTH_ALG_SHA1_HMAC, .auth_key = { .data = test_key20, @@ -313,10 +301,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .cipher_iv = { - .data = test_iv, - .length = 16, - }, + .cipher_iv_len = 16, .auth_alg = ODP_AUTH_ALG_NULL }, }, @@ -328,10 +313,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .cipher_iv = { - .data = test_iv, - .length = 16, - }, + .cipher_iv_len = 16, .auth_alg = ODP_AUTH_ALG_SHA1_HMAC, .auth_key = { .data = test_key20, @@ -373,10 +355,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .auth_iv = { - .data = test_iv, - .length = 12, - }, + .auth_iv_len = 12, .auth_digest_len = 16, }, }, @@ -388,10 +367,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .cipher_iv = { - .data = test_iv, - .length = 12, - }, + .cipher_iv_len = 12, .auth_alg = ODP_AUTH_ALG_AES_GCM, .auth_digest_len = 16, }, @@ -404,10 +380,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key16, .length = sizeof(test_key16) }, - .cipher_iv = { - .data = test_iv, - .length = 11, - }, + .cipher_iv_len = 11, .auth_alg = ODP_AUTH_ALG_AES_CCM, .auth_digest_len = 16, }, @@ -420,10 +393,7 @@ static crypto_alg_config_t algs_config[] = { .data = test_key32, .length = sizeof(test_key32) }, - .cipher_iv = { - .data = test_iv, - .length = 12, - }, + .cipher_iv_len = 12, .auth_alg = ODP_AUTH_ALG_CHACHA20_POLY1305, .auth_digest_len = 16, }, @@ -725,6 +695,8 @@ run_measure_one(crypto_args_t *cargs, /* Initialize parameters block */ memset(¶ms, 0, sizeof(params)); params.session = *session; + params.cipher_iv_ptr = test_iv; + params.auth_iv_ptr = test_iv; params.cipher_range.offset = 0; params.cipher_range.length = payload_length; |