[API-NEXT,v1,4/5] validation: ipsec: add AES-XCBC-MAC and SHA384-HMAC tests

Message ID 1518537618-25725-5-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
 **/
 test/validation/api/ipsec/ipsec.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch

diff --git a/test/validation/api/ipsec/ipsec.c b/test/validation/api/ipsec/ipsec.c
index 31bd557fe..5c5ed1d76 100644
--- a/test/validation/api/ipsec/ipsec.c
+++ b/test/validation/api/ipsec/ipsec.c
@@ -204,10 +204,18 @@  int ipsec_check(odp_bool_t ah,
 		if (!capa.auths.bit.sha256_hmac)
 			return ODP_TEST_INACTIVE;
 		break;
+	case ODP_AUTH_ALG_SHA384_HMAC:
+		if (!capa.auths.bit.sha384_hmac)
+			return ODP_TEST_INACTIVE;
+		break;
 	case ODP_AUTH_ALG_SHA512_HMAC:
 		if (!capa.auths.bit.sha512_hmac)
 			return ODP_TEST_INACTIVE;
 		break;
+	case ODP_AUTH_ALG_AES_XCBC_MAC:
+		if (!capa.auths.bit.aes_xcbc_mac)
+			return ODP_TEST_INACTIVE;
+		break;
 	case ODP_AUTH_ALG_AES_GCM:
 		if (!capa.auths.bit.aes_gcm)
 			return ODP_TEST_INACTIVE;