Added a parameter for passing salt for AES GCM. Currently,
only option for length is 4 bytes, but later on other algorithms
may need more/less salt data.

Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org>
---
 include/odp/api/spec/ipsec.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index e602e4b8..15dbb164 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -384,6 +384,16 @@ typedef struct odp_ipsec_crypto_param_t {
        /** Authentication key */
        odp_crypto_key_t auth_key;
 
+       /** Salt for SA's that use AES_GCM algorithm. Other algorithms ignore
+        *  these fields. */
+       struct {
+               /** Pointer to salt data. */
+               const uint8_t *ptr;
+
+               /** Salt length. Valid value for AES_GCM is 4. */
+               uint32_t len;
+       } salt;
+
 } odp_ipsec_crypto_param_t;
 
 /**
-- 
2.13.0

Reply via email to