diff options
Diffstat (limited to 'lib/libcrypto/cmac/cm_ameth.c')
-rw-r--r-- | lib/libcrypto/cmac/cm_ameth.c | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/lib/libcrypto/cmac/cm_ameth.c b/lib/libcrypto/cmac/cm_ameth.c index 0b8e5670b0e..c960e1cf43b 100644 --- a/lib/libcrypto/cmac/cm_ameth.c +++ b/lib/libcrypto/cmac/cm_ameth.c @@ -73,25 +73,14 @@ static void cmac_key_free(EVP_PKEY *pkey) CMAC_CTX_free(cmctx); } -const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = - { - EVP_PKEY_CMAC, - EVP_PKEY_CMAC, - 0, - - "CMAC", - "OpenSSL CMAC method", - - 0,0,0,0, - - 0,0,0, +const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { + .pkey_id = EVP_PKEY_CMAC, + .pkey_base_id = EVP_PKEY_CMAC, - cmac_size, - 0, - 0,0,0,0,0,0,0, + .pem_str = "CMAC", + .info = "OpenSSL CMAC method", - cmac_key_free, - 0, - 0,0 - }; + .pkey_size = cmac_size, + .pkey_free = cmac_key_free +}; |