aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec_crypto/odp_ipsec_misc.h
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2021-12-10 11:27:17 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2021-12-22 09:25:13 +0200
commit23b4dec2aff82050dad0a278ab3b6904b8981e3c (patch)
tree14da905416d3ac1cc6a05a4efbab812825339ac4 /example/ipsec_crypto/odp_ipsec_misc.h
parentbfa5d8ac20a54a572f410410935f34d152a729e0 (diff)
example: ipsec_crypto: fix outbound ESP processing to not reuse IVs
Reusing the same ESP IV within the same SA should not be done. Fix the code to not reuse pre-generated IVs but generate a new random IV for every outbound ESP packet. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'example/ipsec_crypto/odp_ipsec_misc.h')
-rw-r--r--example/ipsec_crypto/odp_ipsec_misc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/example/ipsec_crypto/odp_ipsec_misc.h b/example/ipsec_crypto/odp_ipsec_misc.h
index 4f50f27ec..6186a2369 100644
--- a/example/ipsec_crypto/odp_ipsec_misc.h
+++ b/example/ipsec_crypto/odp_ipsec_misc.h
@@ -24,7 +24,6 @@ extern "C" {
#define MAX_DB 32 /**< maximum number of data base entries */
#define MAX_LOOPBACK 10 /**< maximum number of loop back interfaces */
#define MAX_STRING 32 /**< maximum string length */
-#define MAX_IV_LEN 32 /**< Maximum IV length in bytes */
#define KEY_BITS_3DES 192 /**< 3DES cipher key length in bits */
#define KEY_BITS_MD5_96 128 /**< MD5_96 auth key length in bits */