diff options
author | Matt Caswell <matt@openssl.org> | 2020-08-11 17:17:00 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-08-29 09:40:11 +0200 |
commit | a540ef90f55c1e10feb709d09332dfa352d9f33e (patch) | |
tree | 83e75d2fae109f51af8c0583e94f4252e9198412 /test/evp_test.c | |
parent | Extend the provider MAC bridge for Poly1305 (diff) | |
download | openssl-a540ef90f55c1e10feb709d09332dfa352d9f33e.tar.xz openssl-a540ef90f55c1e10feb709d09332dfa352d9f33e.zip |
Extend the provider MAC bridge for CMAC
The previous commits added support for HMAC, SIPHASH and Poly1305 into
the provider MAC bridge. We now extend that for CMAC too.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12637)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r-- | test/evp_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index adcfea0038..238bbaf3d5 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -1161,8 +1161,10 @@ static int mac_test_run_pkey(EVP_TEST *t) t->err = "MAC_KEY_CREATE_ERROR"; goto err; } - key = EVP_PKEY_new_CMAC_key(NULL, expected->key, expected->key_len, - cipher); + key = EVP_PKEY_new_CMAC_key_with_libctx(expected->key, + expected->key_len, + EVP_CIPHER_name(cipher), + libctx, NULL); } else { key = EVP_PKEY_new_raw_private_key_with_libctx(libctx, OBJ_nid2sn(expected->type), |