diff options
author | Pauli <pauli@openssl.org> | 2021-04-13 04:11:41 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-04-16 01:00:41 +0200 |
commit | 34ed73339602c361d09fe4233d65cef996356239 (patch) | |
tree | 956e0d71e1ad1859bd58829508d07055b6883a9c /crypto | |
parent | Github workflows: re-implement a no-shared build (diff) | |
download | openssl-34ed73339602c361d09fe4233d65cef996356239.tar.xz openssl-34ed73339602c361d09fe4233d65cef996356239.zip |
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 'crypto')
-rw-r--r-- | crypto/evp/ctrl_params_translate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c index 2d09f182cf..65414f6ede 100644 --- a/crypto/evp/ctrl_params_translate.c +++ b/crypto/evp/ctrl_params_translate.c @@ -2094,6 +2094,14 @@ static const struct translation_st evp_pkey_ctx_translations[] = { OSSL_PKEY_PARAM_RSA_PRIMES, OSSL_PARAM_UNSIGNED_INTEGER, NULL }, /*- + * SipHash + * ====== + */ + { SET, -1, -1, EVP_PKEY_OP_TYPE_SIG, + EVP_PKEY_CTRL_SET_DIGEST_SIZE, "digestsize", NULL, + OSSL_MAC_PARAM_SIZE, OSSL_PARAM_UNSIGNED_INTEGER, NULL }, + + /*- * TLS1-PRF * ======== */ |