[API-NEXT,v1,3/5] linux-gen: ipsec: add AES-XCBC-MAC and SHA384-HMAC support

Message ID 1518537618-25725-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • linux-gen: crypto: implement AES-XCBC-MAC and SHA384-HMAC
Related show

Commit Message

Github ODP bot Feb. 13, 2018, 4 p.m.
From: yhe <yhe@sonicwall.com>


---
/** Email created from pull request 470 (SonicwallYhe:api-next-seperate)
 ** https://github.com/Linaro/odp/pull/470
 ** Patch: https://github.com/Linaro/odp/pull/470.patch
 ** Base sha: af7be638ef9ac98bdb1f2e4917f152889eb1850f
 ** Merge commit sha: f30e7ae4157bae994d5734b8917d2dd31dbf201e
 **/
 platform/linux-generic/odp_ipsec_sad.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/platform/linux-generic/odp_ipsec_sad.c b/platform/linux-generic/odp_ipsec_sad.c
index 3ac8c49c3..e7a3c410b 100644
--- a/platform/linux-generic/odp_ipsec_sad.c
+++ b/platform/linux-generic/odp_ipsec_sad.c
@@ -244,8 +244,12 @@  uint32_t _odp_ipsec_auth_digest_len(odp_auth_alg_t auth)
 #endif
 	case ODP_AUTH_ALG_SHA256_HMAC:
 		return 16;
+	case ODP_AUTH_ALG_SHA384_HMAC:
+		return 24;
 	case ODP_AUTH_ALG_SHA512_HMAC:
 		return 32;
+	case ODP_AUTH_ALG_AES_XCBC_MAC:
+		return 12;
 #if ODP_DEPRECATED_API
 	case ODP_AUTH_ALG_AES128_GCM:
 #endif