summaryrefslogtreecommitdiffstats
path: root/providers/defltprov.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-08-11 15:28:07 +0100
committerPauli <paul.dale@oracle.com>2020-08-29 17:40:10 +1000
commit4db71d0175ed42586bcd4e6527caacbd18602adf (patch)
tree0b1369b7c89a6166413096b4c6a879b3e65f16a5 /providers/defltprov.c
parent8014b2a966e0a971797d5160c082108b5618d6b3 (diff)
Extend the provider MAC bridge for Poly1305
The previous commits added support for HMAC and SIPHASH into the provider MAC bridge. We now extend that for Poly1305 too. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12637)
Diffstat (limited to 'providers/defltprov.c')
-rw-r--r--providers/defltprov.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c
index aaf1cfe6b0..34d2fb29f4 100644
--- a/providers/defltprov.c
+++ b/providers/defltprov.c
@@ -366,6 +366,9 @@ static const OSSL_ALGORITHM deflt_signature[] = {
#endif
{ "HMAC", "provider=default", mac_hmac_signature_functions },
{ "SIPHASH", "provider=default", mac_siphash_signature_functions },
+#ifndef OPENSSL_NO_POLY1305
+ { "POLY1305", "provider=default", mac_poly1305_signature_functions },
+#endif
{ NULL, NULL, NULL }
};
@@ -396,6 +399,9 @@ static const OSSL_ALGORITHM deflt_keymgmt[] = {
{ "SCRYPT:id-scrypt", "provider=default", kdf_keymgmt_functions },
{ "HMAC", "provider=default", mac_keymgmt_functions },
{ "SIPHASH", "provider=default", mac_keymgmt_functions },
+#ifndef OPENSSL_NO_POLY1305
+ { "POLY1305", "provider=default", mac_keymgmt_functions },
+#endif
{ NULL, NULL, NULL }
};