diff options
author | Matt Caswell <matt@openssl.org> | 2020-08-11 16:17:00 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-08-29 17:40:11 +1000 |
commit | a540ef90f55c1e10feb709d09332dfa352d9f33e (patch) | |
tree | 83e75d2fae109f51af8c0583e94f4252e9198412 /test | |
parent | 4db71d0175ed42586bcd4e6527caacbd18602adf (diff) | |
download | openssl-a540ef90f55c1e10feb709d09332dfa352d9f33e.zip openssl-a540ef90f55c1e10feb709d09332dfa352d9f33e.tar.gz openssl-a540ef90f55c1e10feb709d09332dfa352d9f33e.tar.bz2 |
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')
-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 adcfea0..238bbaf 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), |