diff options
author | Matt Caswell <matt@openssl.org> | 2020-08-17 15:14:14 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-08-29 17:40:11 +1000 |
commit | 2ef9a7ac5eb93c3f5460695c526968faf025b730 (patch) | |
tree | f991b0c26fecc7263017e70b1afef1d4d1f76804 /providers/implementations/include/prov/macsignature.h | |
parent | 2106b0471997b6c96fd702ceb0f9a2c8af298a0a (diff) |
Improve code reuse in the provider MAC bridge
We reuse concepts such as PROV_CIPHER, and make use of some common code
in provider_util.c
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12637)
Diffstat (limited to 'providers/implementations/include/prov/macsignature.h')
-rw-r--r-- | providers/implementations/include/prov/macsignature.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/providers/implementations/include/prov/macsignature.h b/providers/implementations/include/prov/macsignature.h index 57adf7d7ba..bec5c46fbe 100644 --- a/providers/implementations/include/prov/macsignature.h +++ b/providers/implementations/include/prov/macsignature.h @@ -10,6 +10,7 @@ #include <stdlib.h> #include <openssl/crypto.h> #include "internal/refcount.h" +#include "prov/provider_util.h" struct mac_key_st { CRYPTO_RWLOCK *lock; @@ -17,8 +18,8 @@ struct mac_key_st { CRYPTO_REF_COUNT refcnt; unsigned char *priv_key; size_t priv_key_len; - char *cipher_name; - char *engine_name; + PROV_CIPHER cipher; + char *properties; int cmac; }; |