]> git.ipfire.org Git - thirdparty/openssl.git/commit
EVP_MD_size() updates
authorslontis <shane.lontis@oracle.com>
Mon, 26 Aug 2024 01:24:24 +0000 (11:24 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 29 Aug 2024 08:29:53 +0000 (10:29 +0200)
commit14c45338e986d5827f1e944d0cffe54a7f4697ea
tree0fb707b13a5e83909a33f5b46eba40537ea5810a
parent976dd3581a00c5006bd696ac9ba7289de4d137d5
EVP_MD_size() updates

For SHAKE algorithms we now return 0 from EVP_MD_size().
So all the places that check for < 0 needed to change to <= 0
(Otherwise the behaviour will be to digest nothing in most cases).

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25285)
23 files changed:
apps/ts.c
crypto/evp/bio_ok.c
crypto/evp/m_sigver.c
crypto/evp/p5_crpt.c
crypto/ffc/ffc_params_generate.c
crypto/hmac/hmac.c
crypto/ocsp/ocsp_vfy.c
crypto/pkcs12/p12_mutl.c
crypto/rsa/rsa_pss.c
crypto/sm2/sm2_crypt.c
crypto/sm2/sm2_sign.c
crypto/ts/ts_rsp_verify.c
providers/implementations/kdfs/hkdf.c
providers/implementations/kdfs/pbkdf1.c
ssl/record/methods/dtls_meth.c
ssl/record/methods/tls_common.c
ssl/s3_enc.c
ssl/ssl_ciph.c
ssl/statem/extensions.c
ssl/statem/statem_clnt.c
ssl/statem/statem_srvr.c
ssl/tls13_enc.c
util/libcrypto.num