diff options
author | Matt Caswell <matt@openssl.org> | 2020-08-11 14:54:18 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-08-29 17:40:10 +1000 |
commit | b27b31b62846d21a915acfd45c92ba82d3cd5666 (patch) | |
tree | 5f8af27467cf8fd638646925980e5218dbf2244a /providers/implementations/signature | |
parent | 6f0bd6ca1c675503962e4580e54ceecd078a8331 (diff) |
Extend the provider MAC bridge for SIPHASH
The previous commits added support for HMAC into the provider MAC bridge.
We now extend that for SIPHASH too.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12637)
Diffstat (limited to 'providers/implementations/signature')
-rw-r--r-- | providers/implementations/signature/mac_legacy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/providers/implementations/signature/mac_legacy.c b/providers/implementations/signature/mac_legacy.c index 67acea3288..bb3bf5b55d 100644 --- a/providers/implementations/signature/mac_legacy.c +++ b/providers/implementations/signature/mac_legacy.c @@ -70,6 +70,7 @@ static void *mac_newctx(void *provctx, const char *propq, const char *macname) } MAC_NEWCTX(hmac, "HMAC") +MAC_NEWCTX(siphash, "SIPHASH") static int mac_digest_sign_init(void *vpmacctx, const char *mdname, void *vkey) { @@ -176,4 +177,5 @@ static void *mac_dupctx(void *vpmacctx) { 0, NULL } \ }; -MAC_SIGNATURE_FUNCTIONS(hmac)
\ No newline at end of file +MAC_SIGNATURE_FUNCTIONS(hmac) +MAC_SIGNATURE_FUNCTIONS(siphash) |