aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-04-13 12:11:41 +1000
committerPauli <pauli@openssl.org>2021-04-16 09:00:41 +1000
commit34ed73339602c361d09fe4233d65cef996356239 (patch)
tree956e0d71e1ad1859bd58829508d07055b6883a9c /test
parent4a95b70d1e3df791ea569e94067cf0bec1f69557 (diff)
downloadopenssl-34ed73339602c361d09fe4233d65cef996356239.tar.gz
SipHash: Fix CTRL API for the digest size.
Adds a mapping from "digestsize" to "size" for setting a param. Fixes #14370 Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14850)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/30-test_evp_data/evpmac_siphash.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/recipes/30-test_evp_data/evpmac_siphash.txt b/test/recipes/30-test_evp_data/evpmac_siphash.txt
index a9081a1c81..8fb6e1cb29 100644
--- a/test/recipes/30-test_evp_data/evpmac_siphash.txt
+++ b/test/recipes/30-test_evp_data/evpmac_siphash.txt
@@ -134,6 +134,12 @@ Key = 000102030405060708090A0B0C0D0E0F
Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
Output = 724506EB4C328A95
+MAC = SipHash by EVP_PKEY
+Ctrl = digestsize:8
+Key = 000102030405060708090A0B0C0D0E0F
+Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
+Output = 724506EB4C328A95
+
# SIPHASH - default values: 2,4 rounds, explicit 16-byte mac
MAC = SipHash
@@ -161,7 +167,7 @@ Result = MAC_INIT_ERROR
# by EVP_PKEY this time
MAC = SipHash by EVP_PKEY
-Ctrl = size:13
+Ctrl = digestsize:13
Key = 000102030405060708090A0B0C0D0E0F
Result = EVPPKEYCTXCTRL_ERROR