Signed-off-by: Nicolas Morey-Chaisemartin <nmo...@kalray.eu>
---
 test/validation/crypto/odp_crypto_test_inp.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/test/validation/crypto/odp_crypto_test_inp.c 
b/test/validation/crypto/odp_crypto_test_inp.c
index 401d225..f3ac4e0 100644
--- a/test/validation/crypto/odp_crypto_test_inp.c
+++ b/test/validation/crypto/odp_crypto_test_inp.c
@@ -654,6 +654,21 @@ void crypto_test_alg_hmac_sha256(void)
                         NULL, 0,
                         hmac_sha256_reference_digest[i],
                         HMAC_SHA256_128_CHECK_LEN);
+
+               /* Now "decode" to validate the auth check function */
+               alg_test(ODP_CRYPTO_OP_DECODE,
+                        ODP_CIPHER_ALG_NULL,
+                        iv,
+                        iv.data,
+                        cipher_key,
+                        ODP_AUTH_ALG_SHA256_128,
+                        auth_key,
+                        NULL, NULL,
+                        hmac_sha256_reference_plaintext[i],
+                        hmac_sha256_reference_length[i],
+                        NULL, 0,
+                        hmac_sha256_reference_digest[i],
+                        HMAC_SHA256_128_CHECK_LEN);
        }
 }
 
-- 
2.6.3.372.gcb93895

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to