aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec_crypto
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2022-01-18 15:57:23 +0200
committerMatias Elo <matias.elo@nokia.com>2022-01-28 09:21:00 +0200
commit94316355d6081e951fa5ff58098f129af54ada8d (patch)
treecbdea09dc12254cdf94618a77f605e068cf22636 /example/ipsec_crypto
parentf1cae1d2fa8807fb8e9e58f1c33a16db70b5f025 (diff)
example: ipsec_crypto: indicate when hash result is in the auth range
In AH the ICV field is in the authenticated packet range. Set the hash_result_in_auth_range flag in crypto session creation for AH. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Diffstat (limited to 'example/ipsec_crypto')
-rw-r--r--example/ipsec_crypto/odp_ipsec_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/ipsec_crypto/odp_ipsec_cache.c b/example/ipsec_crypto/odp_ipsec_cache.c
index ca488bb64..7f0431fd8 100644
--- a/example/ipsec_crypto/odp_ipsec_cache.c
+++ b/example/ipsec_crypto/odp_ipsec_cache.c
@@ -112,6 +112,7 @@ int create_ipsec_cache_entry(sa_db_entry_t *cipher_sa,
params.auth_key.length = auth_sa->key.length;
params.auth_digest_len = auth_sa->icv_len;
mode = auth_sa->mode;
+ params.hash_result_in_auth_range = true;
} else {
params.auth_alg = ODP_AUTH_ALG_NULL;
}