openssl/crypto
Richard Levitte cbcbac644c ENCODER: Don't pass libctx to OSSL_ENCODER_CTX_new_by_EVP_PKEY()
The passed 'pkey' already contains a library context, and the encoder
implementations should be found within the same context, so passing an
explicit library context seems unnecessary, and potentially dangerous.

It should be noted that it's possible to pass an EVP_PKEY with a
legacy internal key.  The condition there is that it doesn't have a
library context assigned to it, so the NULL library context is used
automatically, thus requiring that appropriate encoders are available
through that context.

Fixes #13544

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13545)
2020-12-02 13:36:49 +01:00
..
aes aes/asm/aesv8-armx.pl: avoid 32-bit lane assignment in CTR mode 2020-11-30 12:14:54 +01:00
aria
asn1 Fix instances of pointer addition with the NULL pointer 2020-11-30 10:37:14 +00:00
async Update copyright year 2020-11-26 14:18:57 +00:00
bf
bio Fix instances of pointer addition with the NULL pointer 2020-11-30 10:37:14 +00:00
bn Update copyright year 2020-11-26 14:18:57 +00:00
buffer Update copyright year 2020-11-26 14:18:57 +00:00
camellia
cast
chacha Fix aarch64 static linking into shared libraries (see issue #10842 and pull request #11464) 2020-10-22 12:16:49 +10:00
cmac Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
cmp cmp_client.c: Fix indentation and remove empty line 2020-12-02 12:35:16 +01:00
cms Update copyright year 2020-11-26 14:18:57 +00:00
comp Update copyright year 2020-11-26 14:18:57 +00:00
conf ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
crmf ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
ct ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
des
dh Add EVP_KDF-X942 to the fips module 2020-12-02 12:15:05 +10:00
dsa EVP_PKEY & DSA: Make DSA EVP_PKEY_CTX parameter ctrls / setters more available 2020-11-27 15:30:51 +01:00
dso Update copyright year 2020-11-26 14:18:57 +00:00
ec ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
encode_decode ENCODER: Don't pass libctx to OSSL_ENCODER_CTX_new_by_EVP_PKEY() 2020-12-02 13:36:49 +01:00
engine Update copyright year 2020-11-26 14:18:57 +00:00
err Add EVP_KDF-X942 to the fips module 2020-12-02 12:15:05 +10:00
ess ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
evp EVP_PKEY & DSA: Make DSA EVP_PKEY_CTX parameter ctrls / setters more available 2020-11-27 15:30:51 +01:00
ffc Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
hmac
http ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
idea
kdf
lhash Update copyright year 2020-11-26 14:18:57 +00:00
md2
md4
md5 Update copyright year 2020-11-26 14:18:57 +00:00
mdc2
modes Update copyright year 2020-11-26 14:18:57 +00:00
objects Update copyright year 2020-11-26 14:18:57 +00:00
ocsp ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
pem Fix instances of pointer addition with the NULL pointer 2020-11-30 10:37:14 +00:00
perlasm
pkcs7 ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
pkcs12 Update copyright year 2020-11-26 14:18:57 +00:00
poly1305 crypto/poly1305/asm: fix armv8 pointer authentication 2020-10-29 17:17:21 +01:00
property ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
rand ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
rc2
rc4 rename md5_block_asm_data_order to ossl_md5_block_asm_data_order 2020-11-19 07:38:58 +10:00
rc5
ripemd
rsa RSA: correct digestinfo_ripemd160_der[] 2020-11-30 12:42:03 +01:00
seed
sha Update copyright year 2020-11-26 14:18:57 +00:00
siphash
sm2 ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
sm3
sm4
srp Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
stack Update copyright year 2020-11-26 14:18:57 +00:00
store Don't forget the datatype when decoding a PEM file 2020-11-25 10:02:49 +00:00
ts Update copyright year 2020-11-26 14:18:57 +00:00
txt_db
ui ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
whrlpool
x509 Don't Overflow when printing Thawte Strong Extranet Version 2020-12-02 10:28:45 +00:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
asn1_dsa.c Update copyright year 2020-10-15 14:10:06 +01:00
bsearch.c
build.info
c64xpluscpuid.pl
context.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
core_algorithm.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
core_fetch.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
core_namemap.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
cpt_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
cryptlib.c Update copyright year 2020-10-15 14:10:06 +01:00
ctype.c
cversion.c
der_writer.c
dllmain.c
ebcdic.c
ex_data.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
getenv.c Update copyright year 2020-10-15 14:10:06 +01:00
ia64cpuid.S
info.c
init.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
initthread.c Prevent potential UAF in init_thread_deregister() 2020-11-02 18:03:22 +01:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c
mem_sec.c Implement OpenSSL secure memory for Windows 2020-10-22 12:11:35 +10:00
mem.c
mips_arch.h
o_dir.c
o_fopen.c Update copyright year 2020-11-26 14:18:57 +00:00
o_init.c
o_str.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
o_time.c
packet.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
param_build_set.c DH: make the private key length importable / exportable 2020-10-19 12:14:11 +02:00
param_build.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
params_from_text.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
params.c Fix some warnings from clang 10 in params.c 2020-11-19 21:13:57 +10:00
pariscid.pl
passphrase.c
ppc_arch.h
ppccap.c
ppccpuid.pl
provider_conf.c CRYPTO: refactor ERR_raise()+ERR_add_error_data() to ERR_raise_data() 2020-11-13 09:35:31 +01:00
provider_core.c rand: move the entropy source out of the FIPS provider 2020-11-20 08:24:21 +10:00
provider_local.h
provider_predefined.c
provider.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
punycode.c Update copyright year 2020-10-15 14:10:06 +01:00
README-sparse_array.md
s390x_arch.h
s390xcap.c
s390xcpuid.pl
self_test_core.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
sparc_arch.h
sparccpuid.S
sparcv9cap.c
sparse_array.c Update copyright year 2020-10-15 14:10:06 +01:00
threads_none.c
threads_pthread.c Moved OPENSSL_fork_prepare,_parent,_child from init.c to threads_pthread.c. 2020-11-04 17:02:38 +01:00
threads_win.c
trace.c ENCODER: Add tracing 2020-11-11 12:43:27 +01:00
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl