openssl/crypto
Tomas Mraz 78539b250b EVP_DigestSign/VerifyFinal: Duplicate the pctx to allow multiple calls
The legacy implementation duplicates the pctx before creating/verifying
the signature unless EVP_MD_CTX_FLAG_FINALISE is set. We have to do the
same with provided implementations.

Fixes #16321

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16422)
2021-08-26 16:06:57 +02:00
..
aes Update copyright year 2021-07-29 15:41:35 +01:00
aria
asn1 Avoid invoking memcpy if size is zero or the supplied buffer is NULL 2021-08-25 17:02:37 +02:00
async Update copyright year 2021-06-17 13:24:59 +01:00
bf
bio BIO_lookup_ex: use AI_ADDRCONFIG only if explicit host name is given 2021-07-10 17:59:00 +02:00
bn Update copyright year 2021-07-29 15:41:35 +01:00
buffer Update copyright year 2021-06-17 13:24:59 +01:00
camellia Update copyright year 2021-07-29 15:41:35 +01:00
cast
chacha ppccap.c: Split out algorithm-specific functions 2021-06-25 08:49:45 +01:00
cmac
cmp Fix CMP code to not assume NUL terminated strings 2021-08-24 14:22:06 +01:00
cms rsa_cms_verify: Avoid negative return with missing pss parameters 2021-07-06 10:08:08 +10:00
comp Update copyright year 2021-06-17 13:24:59 +01:00
conf Update copyright year 2021-06-17 13:24:59 +01:00
crmf OSSL_CRMF_{CERTTEMPLATE,CERTID}_get0_serialNumber(): Make result const for consistency 2021-06-30 10:38:23 +02:00
ct Update copyright year 2021-06-17 13:24:59 +01:00
des Update copyright year 2021-07-29 15:41:35 +01:00
dh Update our EVP_PKEY_METHODs to get low level keys via public APIs 2021-07-22 13:52:46 +02:00
dsa Update copyright year 2021-07-29 15:41:35 +01:00
dso Update copyright year 2021-06-17 13:24:59 +01:00
ec Fix EC_GROUP_new_from_ecparameters to check the base length 2021-08-24 14:22:07 +01:00
encode_decode Coverity #1486687: fix potential dereference of NULL keymgmt 2021-07-05 12:44:54 +10:00
engine Update copyright year 2021-06-17 13:24:59 +01:00
err Add invalid input length error 2021-08-26 09:33:39 +10:00
ess
evp EVP_DigestSign/VerifyFinal: Duplicate the pctx to allow multiple calls 2021-08-26 16:06:57 +02:00
ffc Set FFC_PARAM_FLAG_VALIDATE_LEGACY on params generated with FIPS 186-2 gen 2021-08-11 12:07:08 +02:00
hmac Adapt other parts of the source to the changed EVP_Q_digest() and EVP_Q_mac() 2021-06-23 23:00:36 +02:00
http OSSL_HTTP_open(): Fix memory leak on TLS connect failure via proxy 2021-07-22 10:14:47 +02:00
idea
kdf
lhash
md2
md4
md5 Update copyright year 2021-07-29 15:41:35 +01:00
mdc2
modes Update copyright year 2021-07-29 15:41:35 +01:00
objects Update copyright year 2021-06-17 13:24:59 +01:00
ocsp Update copyright year 2021-06-17 13:24:59 +01:00
pem pem_read_bio_key: Add passphrase caching to avoid asking for password twice 2021-07-02 15:33:34 +02:00
perlasm Update copyright year 2021-06-17 13:24:59 +01:00
pkcs7 Update copyright year 2021-06-17 13:24:59 +01:00
pkcs12 Update copyright year 2021-06-17 13:24:59 +01:00
poly1305 Update copyright year 2021-07-29 15:41:35 +01:00
property property: remove spurious incorrect comments 2021-06-24 15:51:48 +10:00
rand err: remove the derivation function is mandatory for FIPS error message since it's no longer used and newly introduced 2021-07-20 18:34:07 +10:00
rc2
rc4
rc5
ripemd
rsa Allow small RSA exponents in the default provider 2021-08-13 10:35:56 +02:00
seed Update copyright year 2021-06-17 13:24:59 +01:00
sha Update copyright year 2021-07-29 15:41:35 +01:00
siphash
sm2 sm2: fix error raise to not fail make update 2021-08-25 10:12:17 +10:00
sm3
sm4
srp
stack
store PROV & STORE: Make the 'file:' store loader understand more binary formats 2021-07-03 19:44:15 +02:00
ts ts: fix memleaks caused by TS_VERIFY_CTX_set_imprint 2021-08-26 11:06:06 +02:00
txt_db
ui Update copyright year 2021-07-29 15:41:35 +01:00
whrlpool
x509 Fix the error handling in i2v_AUTHORITY_KEYID 2021-08-24 14:22:07 +01:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c enable getauxval on android 10 2021-06-25 18:31:05 +10:00
armv4cpuid.pl
asn1_dsa.c
bsearch.c
build.info FIPS: don't include crypto/passphrase.c in libfips.a 2021-06-05 10:32:13 +02:00
c64xpluscpuid.pl
context.c
core_algorithm.c
core_fetch.c CORE: Do a bit of cleanup of core fetching 2021-06-16 12:32:53 +01:00
core_namemap.c
cpt_err.c
cpuid.c
cryptlib.c crypto: remove TODOs 2021-06-02 16:30:15 +10:00
ctype.c
cversion.c
der_writer.c
dllmain.c
ebcdic.c
ex_data.c
getenv.c
ia64cpuid.S
info.c
init.c Prevent recursive call of OPENSSL_INIT_LOAD_CONFIG 2021-08-05 09:21:00 +10:00
initthread.c
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c
mem_sec.c
mem.c
mips_arch.h
o_dir.c
o_fopen.c
o_init.c
o_str.c
o_time.c
packet.c Update copyright year 2021-06-17 13:24:59 +01:00
param_build_set.c
param_build.c
params_dup.c
params_from_text.c
params.c params: fix range check when converting double to uint64_t. 2021-06-19 15:47:57 +10:00
pariscid.pl
passphrase.c Update copyright year 2021-07-29 15:41:35 +01:00
ppccap.c enable getauxval on android 10 2021-06-25 18:31:05 +10:00
ppccpuid.pl
provider_child.c Fix a race in ossl_provider_add_to_store() 2021-06-24 14:48:15 +01:00
provider_conf.c Ensure any default_properties still apply even in the event of a provider load failure 2021-07-28 10:35:06 +10:00
provider_core.c Fix a race in ossl_provider_add_to_store() 2021-06-24 14:48:15 +01:00
provider_local.h make struct provider_info_st a full type 2021-06-24 14:48:15 +01:00
provider_predefined.c make struct provider_info_st a full type 2021-06-24 14:48:15 +01:00
provider.c Fix a race in ossl_provider_add_to_store() 2021-06-24 14:48:15 +01:00
punycode.c
README-sparse_array.md
s390x_arch.h
s390xcap.c
s390xcpuid.pl
self_test_core.c
sparccpuid.S
sparcv9cap.c Split bignum code out of the sparcv9cap.c 2021-07-15 09:33:04 +02:00
sparse_array.c
threads_lib.c
threads_none.c
threads_pthread.c Defined out MUTEX attributes not available on NonStop SPT Threads. 2021-07-02 12:33:45 +10:00
threads_win.c
trace.c
uid.c Update copyright year 2021-07-29 15:41:35 +01:00
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl