History log of /openssl/ (Results 7901 – 7925 of 36072)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
c227949910-Feb-2021 Chenglong Zhang

Fix speed sm2 bug

Should create PKEY CTX with EVP_PKEY_SM2;
each job should have its own sm2_pkey;
loopargs[i].sigsize should be set after EVP_DigestSign().

Reviewed-by: Pau

Fix speed sm2 bug

Should create PKEY CTX with EVP_PKEY_SM2;
each job should have its own sm2_pkey;
loopargs[i].sigsize should be set after EVP_DigestSign().

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14144)

show more ...

1d724b5e24-Sep-2020 Zhang Jinde

CRYPTO_gcm128_decrypt: fix mac or tag calculation

The incorrect code is in #ifdef branch that is normally
not compiled in.

Signed-off-by: Zhang Jinde <zjd5536@163.com>

CRYPTO_gcm128_decrypt: fix mac or tag calculation

The incorrect code is in #ifdef branch that is normally
not compiled in.

Signed-off-by: Zhang Jinde <zjd5536@163.com>

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12968)

show more ...

3352dc1819-Feb-2021 Shane Lontis

Fix merge problem in d2i_PrivateKey_ex

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1

Fix merge problem in d2i_PrivateKey_ex

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14243)

show more ...

eabb301417-Feb-2021 Shane Lontis

Fix DH ASN1 decode so that it detects named groups.

The dh->nid was not being set if the loaded p,g matched an inbuilt named
group for "DH".

NOTE: The "DHX" related path already

Fix DH ASN1 decode so that it detects named groups.

The dh->nid was not being set if the loaded p,g matched an inbuilt named
group for "DH".

NOTE: The "DHX" related path already worked since it calls DH_set0_pqg()
(which does the name group check).

This bug was detected when new tests were added for dh5114 groups, combined
with the no-cache tests i.e. loading+import+export set the nid,
but just loading did not.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14207)

show more ...

576892d702-Dec-2020 Shane Lontis

Fix d2i_AutoPrivateKey_ex so that is uses the new decoder (and produces
non legacy keys).

Fixes #13522

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github

Fix d2i_AutoPrivateKey_ex so that is uses the new decoder (and produces
non legacy keys).

Fixes #13522

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13591)

show more ...

ef33889e17-Feb-2021 Pauli

doc: remove notes section in OSSL_ENCODER.pod

Fixes #14212

The note wasn't adding anything useful.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github

doc: remove notes section in OSSL_ENCODER.pod

Fixes #14212

The note wasn't adding anything useful.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14220)

show more ...

458d168c12-Feb-2021 Georg Höllrigl

rfc2606 compliant example domains for x509v3_config.pod

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/ope

rfc2606 compliant example domains for x509v3_config.pod

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14210)

show more ...

125107e812-Feb-2021 georg-x

Various improvements of doc/man5/x509v3_config.pod

include is the better word

Co-authored-by: kaduk <kaduk-github@mit.edu>

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Review

Various improvements of doc/man5/x509v3_config.pod

include is the better word

Co-authored-by: kaduk <kaduk-github@mit.edu>

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14210)

show more ...

70793dbb13-Feb-2021 Matt Caswell

Pass the object type and data structure from the pem2der decoder

The pem2der decoder can infer certain information about the endoded der
data based on the PEM headers. This information s

Pass the object type and data structure from the pem2der decoder

The pem2der decoder can infer certain information about the endoded der
data based on the PEM headers. This information should be passed to the
next decoders in the chain to ensure we end up loading the correct type of
thing.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14191)

show more ...

3a2171f611-Feb-2021 Matt Caswell

Don't forget the type of thing we are loading

The apps helper function load_key_certs_crls() is a general purpose
function for loading different types of objects from a given URI. It

Don't forget the type of thing we are loading

The apps helper function load_key_certs_crls() is a general purpose
function for loading different types of objects from a given URI. It
sets up an OSSL_STORE and calls OSSL_STORE_expect() so that the store
knows what type of thing to expect to load. Unfortunately this wasn't
working and was always setting "expect" to 0 - which means "anything".

Fixes #13709

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14191)

show more ...

3262300a13-Feb-2021 Richard Levitte

Adjust the few places where the string length was confused

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14168)

247a178612-Feb-2021 Richard Levitte

OSSL_PARAM: Correct the assumptions on the UTF8 string length

When the string "ABCDEFGH" is passed, what's considered its data, this?

{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H' }

OSSL_PARAM: Correct the assumptions on the UTF8 string length

When the string "ABCDEFGH" is passed, what's considered its data, this?

{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H' }

or this?

{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', '\0' }

If it's passed as a pass phrase, should the terminating NUL byte be
considered part of the pass phrase, or not?

Our treatment of OSSL_PARAMs with the data type OSSL_PARAM_UTF8_STRING
set the length of the string to include the terminating NUL byte,
which is quite confusing. What should the recipient of such a string
believe?

Instead of perpetuating this confusion, we change the assumption to
set the OSSL_PARAM to the length of the string, not including the
terminating NUL byte, thereby giving it the same value as a strlen()
call would give.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14168)

show more ...

c1be4d6117-Feb-2021 Dr. David von Oheimb

Rename internal X509_add_cert_new() to ossl_x509_add_cert_new()

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14039)

daf1300b23-Dec-2020 Dr. David von Oheimb

Add internal X509_add_certs_new(), which simplifies matters

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14039)

937984ef18-Feb-2021 Matt Caswell

Prepare for 3.0 alpha 13

Reviewed-by: Tomas Mraz <tomas@openssl.org>

b467d39418-Feb-2021 Matt Caswell

Prepare for release of 3.0 alpha 12

Reviewed-by: Tomas Mraz <tomas@openssl.org>

a28d06f318-Feb-2021 Matt Caswell

Update copyright year

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14235)


apps/ciphers.c
apps/cms.c
apps/dhparam.c
apps/dsa.c
apps/dsaparam.c
apps/gendsa.c
apps/genrsa.c
apps/include/s_apps.h
apps/lib/app_provider.c
apps/lib/app_rand.c
apps/mac.c
apps/ocsp.c
apps/pkcs12.c
apps/pkcs7.c
apps/pkcs8.c
apps/pkeyutl.c
apps/rand.c
apps/rsa.c
apps/rsautl.c
apps/s_server.c
apps/storeutl.c
apps/ts.c
crypto/asn1/i2d_evp.c
crypto/bn/bn_rand.c
crypto/cmp/cmp_ctx.c
crypto/cms/cms_ec.c
crypto/ct/ct_log.c
crypto/encode_decode/decoder_pkey.c
crypto/encode_decode/encoder_pkey.c
crypto/err/err_all.c
crypto/evp/digest.c
crypto/evp/evp_enc.c
crypto/evp/evp_pkey.c
crypto/evp/keymgmt_lib.c
crypto/evp/keymgmt_meth.c
crypto/evp/m_sigver.c
crypto/evp/pmeth_check.c
crypto/evp/pmeth_gn.c
crypto/evp/pmeth_lib.c
crypto/ex_data.c
crypto/ffc/ffc_dh.c
crypto/http/http_err.c
crypto/objects/objects.pl
crypto/ocsp/ocsp_vfy.c
crypto/pem/pem_local.h
crypto/pem/pem_pk8.c
crypto/pem/pem_pkey.c
crypto/rsa/rsa_backend.c
crypto/rsa/rsa_gen.c
crypto/rsa/rsa_pss.c
crypto/rsa/rsa_ssl.c
crypto/srp/srp_vfy.c
crypto/stack/stack.c
crypto/store/store_result.c
crypto/threads_pthread.c
crypto/ts/ts_rsp_sign.c
dev/release.sh
doc/internal/man3/evp_keymgmt_util_export_to_provider.pod
doc/internal/man7/EVP_PKEY.pod
doc/man1/openssl-ciphers.pod.in
doc/man1/openssl-dgst.pod.in
doc/man1/openssl-s_client.pod.in
doc/man1/openssl-srp.pod.in
doc/man3/BN_generate_prime.pod
doc/man3/BN_rand.pod
doc/man3/DEFINE_STACK_OF.pod
doc/man3/EVP_DigestInit.pod
doc/man3/EVP_MAC.pod
doc/man3/EVP_PKEY_CTX_set_rsa_pss_keygen_md.pod
doc/man3/EVP_PKEY_check.pod
doc/man3/EVP_PKEY_gettable_params.pod
doc/man3/OSSL_DECODER_CTX_new_for_pkey.pod
doc/man3/OSSL_ENCODER_CTX_new_for_pkey.pod
doc/man3/SRP_Calc_B.pod
doc/man3/SRP_VBASE_new.pod
doc/man3/SRP_create_verifier.pod
doc/man3/SRP_user_pwd_new.pod
doc/man3/SSL_CTX_set_srp_password.pod
doc/man3/SSL_write.pod
doc/man3/X509_STORE_CTX_get_error.pod
doc/man3/X509_STORE_CTX_new.pod
doc/man3/X509_load_http.pod
doc/man3/X509_new.pod
doc/man7/EVP_KDF-SSHKDF.pod
doc/man7/EVP_KDF-X942-ASN1.pod
doc/man7/EVP_MAC-HMAC.pod
doc/man7/EVP_MD-MDC2.pod
doc/man7/provider-kdf.pod
doc/man7/provider-keymgmt.pod
doc/man7/provider-mac.pod
doc/man7/provider-rand.pod
doc/man7/provider-signature.pod
doc/perlvars.pm
engines/e_afalg.txt
engines/e_afalg_err.h
engines/e_capi.txt
engines/e_capi_err.h
engines/e_dasync.txt
engines/e_dasync_err.h
engines/e_loader_attic.txt
engines/e_loader_attic_err.h
engines/e_ossltest.txt
engines/e_ossltest_err.h
fuzz/x509.c
include/crypto/aes_platform.h
include/crypto/aria.h
include/crypto/asn1_dsa.h
include/crypto/async.h
include/crypto/bn.h
include/crypto/bn_conf.h.in
include/crypto/chacha.h
include/crypto/cmll_platform.h
include/crypto/cms.h
include/crypto/cryptlib.h
include/crypto/ctype.h
include/crypto/decoder.h
include/crypto/des_platform.h
include/crypto/dh.h
include/crypto/dsa.h
include/crypto/dso_conf.h.in
include/crypto/ecx.h
include/crypto/err.h
include/crypto/ess.h
include/crypto/evp.h
include/crypto/lhash.h
include/crypto/pem.h
include/crypto/pkcs7.h
include/crypto/poly1305.h
include/crypto/punycode.h
include/crypto/rand.h
include/crypto/rand_pool.h
include/crypto/rsa.h
include/crypto/security_bits.h
include/crypto/sha.h
include/crypto/siphash.h
include/crypto/sm4.h
include/crypto/sparse_array.h
include/crypto/store.h
include/internal/asn1.h
include/internal/bio.h
include/internal/conf.h
include/internal/constant_time.h
include/internal/core.h
include/internal/dane.h
include/internal/deprecated.h
include/internal/dso.h
include/internal/dsoerr.h
include/internal/endian.h
include/internal/err.h
include/internal/ffc.h
include/internal/nelem.h
include/internal/numbers.h
include/internal/o_dir.h
include/internal/packet.h
include/internal/param_build_set.h
include/internal/passphrase.h
include/internal/property.h
include/internal/propertyerr.h
include/internal/provider.h
include/internal/refcount.h
include/internal/sha3.h
include/internal/sizes.h
include/internal/sm3.h
include/internal/sockets.h
include/internal/sslconf.h
include/internal/symhacks.h
include/internal/tlsgroups.h
include/openssl/asn1err.h
include/openssl/asyncerr.h
include/openssl/bnerr.h
include/openssl/buffererr.h
include/openssl/cmp_util.h
include/openssl/cmperr.h
include/openssl/cmserr.h
include/openssl/comperr.h
include/openssl/conferr.h
include/openssl/configuration.h.in
include/openssl/core.h
include/openssl/core_dispatch.h
include/openssl/core_object.h
include/openssl/crmferr.h
include/openssl/crypto.h.in
include/openssl/cryptoerr.h
include/openssl/cryptoerr_legacy.h
include/openssl/cterr.h
include/openssl/decoder.h
include/openssl/decodererr.h
include/openssl/dherr.h
include/openssl/dsa.h
include/openssl/dsaerr.h
include/openssl/ecerr.h
include/openssl/encoder.h
include/openssl/encodererr.h
include/openssl/engineerr.h
include/openssl/ess.h.in
include/openssl/esserr.h
include/openssl/fips_names.h
include/openssl/fipskey.h.in
include/openssl/httperr.h
include/openssl/kdf.h
include/openssl/kdferr.h
include/openssl/macros.h
include/openssl/objectserr.h
include/openssl/ocsperr.h
include/openssl/opensslconf.h
include/openssl/param_build.h
include/openssl/pemerr.h
include/openssl/pkcs12err.h
include/openssl/pkcs7err.h
include/openssl/provider.h
include/openssl/randerr.h
include/openssl/rsa.h
include/openssl/rsaerr.h
include/openssl/self_test.h
include/openssl/srp.h.in
include/openssl/sslerr_legacy.h
include/openssl/storeerr.h
include/openssl/trace.h
include/openssl/tserr.h
include/openssl/uierr.h
include/openssl/x509_vfy.h.in
include/openssl/x509err.h
include/openssl/x509v3err.h
providers/common/capabilities.c
providers/common/der/der_rsa.h.in
providers/common/der/der_rsa_key.c
providers/common/der/der_rsa_sig.c
providers/common/provider_util.c
providers/common/securitycheck.c
providers/common/securitycheck_fips.c
providers/decoders.inc
providers/defltprov.c
providers/encoders.inc
providers/fips/self_test.c
providers/fips/self_test_data.inc
providers/implementations/ciphers/cipher_aes_cts.inc
providers/implementations/ciphers/cipher_aes_hw.c
providers/implementations/ciphers/cipher_aes_hw_aesni.inc
providers/implementations/ciphers/cipher_aes_hw_s390x.inc
providers/implementations/ciphers/cipher_aes_hw_t4.inc
providers/implementations/ciphers/cipher_aes_siv.c
providers/implementations/ciphers/cipher_aes_siv.h
providers/implementations/ciphers/cipher_aes_wrp.c
providers/implementations/ciphers/cipher_aes_xts.c
providers/implementations/ciphers/cipher_aria_hw.c
providers/implementations/ciphers/cipher_blowfish.c
providers/implementations/ciphers/cipher_camellia_hw.c
providers/implementations/ciphers/cipher_camellia_hw_t4.inc
providers/implementations/ciphers/cipher_cast5.c
providers/implementations/ciphers/cipher_chacha20.c
providers/implementations/ciphers/cipher_chacha20_poly1305.c
providers/implementations/ciphers/cipher_des.c
providers/implementations/ciphers/cipher_des.h
providers/implementations/ciphers/cipher_null.c
providers/implementations/ciphers/cipher_rc2.c
providers/implementations/ciphers/cipher_rc4.c
providers/implementations/ciphers/cipher_rc5.c
providers/implementations/ciphers/cipher_tdes.c
providers/implementations/ciphers/cipher_tdes.h
providers/implementations/ciphers/cipher_tdes_common.c
providers/implementations/ciphers/cipher_tdes_default_hw.c
providers/implementations/ciphers/cipher_tdes_wrap.c
providers/implementations/ciphers/ciphercommon_block.c
providers/implementations/ciphers/ciphercommon_hw.c
providers/implementations/digests/digestcommon.c
providers/implementations/digests/mdc2_prov.c
providers/implementations/digests/sha2_prov.c
providers/implementations/digests/sha3_prov.c
providers/implementations/encode_decode/decode_der2key.c
providers/implementations/encode_decode/decode_pem2der.c
providers/implementations/encode_decode/encode_key2any.c
providers/implementations/encode_decode/encode_key2text.c
providers/implementations/exchange/ecx_exch.c
providers/implementations/include/prov/ciphercommon_aead.h
providers/implementations/include/prov/digestcommon.h
providers/implementations/include/prov/implementations.h
providers/implementations/kdfs/hkdf.c
providers/implementations/kdfs/kbkdf.c
providers/implementations/kdfs/pbkdf2.c
providers/implementations/kdfs/pkcs12kdf.c
providers/implementations/kdfs/scrypt.c
providers/implementations/kdfs/sshkdf.c
providers/implementations/kdfs/sskdf.c
providers/implementations/kdfs/tls1_prf.c
providers/implementations/kdfs/x942kdf.c
providers/implementations/kem/rsa_kem.c
providers/implementations/keymgmt/dh_kmgmt.c
providers/implementations/keymgmt/dsa_kmgmt.c
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/keymgmt/mac_legacy_kmgmt.c
providers/implementations/keymgmt/rsa_kmgmt.c
providers/implementations/macs/blake2_mac_impl.c
providers/implementations/macs/gmac_prov.c
providers/implementations/macs/hmac_prov.c
providers/implementations/macs/kmac_prov.c
providers/implementations/macs/poly1305_prov.c
providers/implementations/macs/siphash_prov.c
providers/implementations/rands/drbg.c
providers/implementations/rands/drbg_ctr.c
providers/implementations/rands/drbg_hash.c
providers/implementations/rands/drbg_hmac.c
providers/implementations/rands/drbg_local.h
providers/implementations/rands/seed_src.c
providers/implementations/rands/test_rng.c
providers/implementations/signature/dsa.c
providers/implementations/signature/ecdsa.c
providers/implementations/signature/eddsa.c
providers/implementations/signature/rsa.c
providers/implementations/signature/sm2sig.c
ssl/record/ssl3_record.c
ssl/ssl_conf.c
ssl/statem/extensions_clnt.c
ssl/statem/extensions_cust.c
ssl/statem/extensions_srvr.c
ssl/statem/statem_lib.c
ssl/t1_trce.c
ssl/tls_srp.c
test/acvp_test.c
test/cipher_overhead_test.c
test/danetest.c
test/ec_internal_test.c
test/endecode_test.c
test/endecoder_legacy_test.c
test/evp_kdf_test.c
test/evp_pkey_provided_test.c
test/filterprov.c
test/helpers/handshake.h
test/helpers/predefined_dhparams.c
test/helpers/ssltestlib.c
test/params_test.c
test/recipes/06-test_algorithmid.t
test/recipes/15-test_genrsa.t
test/recipes/20-test_dhparam_check.t
test/recipes/20-test_mac.t
test/recipes/25-test_verify.t
test/recipes/30-test_evp_data/evpkdf_x942.txt
test/recipes/30-test_evp_data/evprand.txt
test/recipes/70-test_comp.t
test/recipes/70-test_key_share.t
test/recipes/70-test_sslcbcpadding.t
test/recipes/70-test_sslextension.t
test/recipes/70-test_sslrecords.t
test/recipes/70-test_sslsigalgs.t
test/recipes/70-test_sslsignature.t
test/recipes/70-test_sslversions.t
test/recipes/70-test_tls13alerts.t
test/recipes/70-test_tls13cookie.t
test/recipes/70-test_tls13downgrade.t
test/recipes/70-test_tls13hrr.t
test/recipes/70-test_tls13kexmodes.t
test/recipes/70-test_tls13psk.t
test/recipes/70-test_tlsextms.t
test/recipes/80-test_cmp_http.t
test/recipes/81-test_cmp_cli.t
test/recipes/90-test_fipsload.t
test/recipes/90-test_tls13ccs.t
test/recipes/90-test_tls13encryption.t
test/recipes/90-test_tls13secrets.t
test/recordlentest.c
test/rsa_test.c
test/run_tests.pl
test/servername_test.c
test/srptest.c
test/ssl-tests/27-ticket-appdata.cnf.in
test/ssl-tests/protocol_version.pm
test/ssl_test.c
test/stack_test.c
test/tls-provider.c
util/mkerr.pl
util/mknum.pl
util/perl/OpenSSL/Ordinals.pm
util/perl/OpenSSL/ParseC.pm
7b676cc817-Feb-2021 Shane Lontis

Fix external symbols related to provider related security checks for
keys and digests.

Partial fix for #12964

This adds ossl_ names for the following symbols:

digest_ge

Fix external symbols related to provider related security checks for
keys and digests.

Partial fix for #12964

This adds ossl_ names for the following symbols:

digest_get_approved_nid, digest_get_approved_nid_with_sha1
digest_is_allowed, digest_md_to_nid, digest_rsa_sign_get_md_nid,
securitycheck_enabled,
dh_check_key, dsa_check_key, ec_check_key,

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14211)

show more ...

47c076ac17-Feb-2021 Shane Lontis

Fix external symbols in the provider digest implementations.

Partial fix for #12964

This adds ossl_ names for the following symbols:

blake2b512_init,blake2b_final,blake2b_i

Fix external symbols in the provider digest implementations.

Partial fix for #12964

This adds ossl_ names for the following symbols:

blake2b512_init,blake2b_final,blake2b_init,blake2b_init_key,
blake2b_param_init,blake2b_param_set_digest_length,blake2b_param_set_key_length,
blake2b_param_set_personal,blake2b_param_set_salt,blake2b_update,
blake2s256_init,blake2s_final,blake2s_init,blake2s_init_key,
blake2s_param_init,blake2s_param_set_digest_length,blake2s_param_set_key_length,
blake2s_param_set_personal,blake2s_param_set_salt,blake2s_update,
digest_default_get_params,digest_default_gettable_params

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14211)

show more ...

bcb61b3921-Jan-2021 zekeevans-mf <77804765+zekeevans-mf@users.noreply.github.com>

Add deep copy of propq field in mac_dupctx to avoid double free

mac_dupctx() should make a copy of the propq field. Currently it
does a shallow copy which can result in a double free and

Add deep copy of propq field in mac_dupctx to avoid double free

mac_dupctx() should make a copy of the propq field. Currently it
does a shallow copy which can result in a double free and crash.
The double free occurs when using a provider property string.
For example, passing in "fips=no" to SSL_CTX_new_ex() causes the
propq field to get set to that value. When mac_dupctx() and
mac_freectx() is called (ie: in SSL_write()) it ends up freeing
the reference of the original object instead of a copy.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13926)

show more ...

5d8ffebb25-Jan-2021 Sahana Prasad

DH: Make DH_bits(), DH_size(), and DH_security_bits() check that there are key parameters

Fixes #13569
Signed-off-by: Sahana Prasad <sahana@redhat.com>

Reviewed-by: Richard Levi

DH: Make DH_bits(), DH_size(), and DH_security_bits() check that there are key parameters

Fixes #13569
Signed-off-by: Sahana Prasad <sahana@redhat.com>

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13955)

show more ...

0b3139e811-Feb-2021 Dr. David von Oheimb

chain_build(): Call verify_cb_cert() if a preliminary error has become final

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14157)

ba37b82010-Feb-2021 Tomas Mraz

dsa_check: Perform simple parameter check if seed is not available

Added primality check on p and q in the ossl_ffc_params_simple_validate().
Checking for p and q sizes in the default pr

dsa_check: Perform simple parameter check if seed is not available

Added primality check on p and q in the ossl_ffc_params_simple_validate().
Checking for p and q sizes in the default provider is made more
lenient.
Added two testcases for invalid parameters.

Fixes #13950

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14148)

show more ...

ebcaf11022-Jan-2021 Dmitry Belyavskiy

DSA parameter check using pkeyparam

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pu

DSA parameter check using pkeyparam

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14148)

show more ...


test/recipes/15-test_dsaparam.t
test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1864.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q160_t1864_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q224_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q224_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q256_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p1024_q256_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q160_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q160_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1864.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q224_t1864_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1864.pem
test/recipes/15-test_dsaparam_data/valid/p2048_q256_t1864_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q160_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q160_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q224_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q224_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1862.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1862_gind1.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1864.pem
test/recipes/15-test_dsaparam_data/valid/p3072_q256_t1864_gind1.pem
e36b3c2f17-Feb-2021 Shane Lontis

Fix external symbols in the provider cipher implementations.

Partial fix for #12964

This add ossl_ names for the following symbols.

chacha20_dinit, chacha20_einit, chacha20

Fix external symbols in the provider cipher implementations.

Partial fix for #12964

This add ossl_ names for the following symbols.

chacha20_dinit, chacha20_einit, chacha20_initctx,
ccm_cipher, ccm_dinit, ccm_einit, ccm_generic_auth_decrypt, ccm_generic_auth_encrypt,
ccm_generic_gettag, ccm_generic_setaad, ccm_generic_setiv, ccm_get_ctx_params,
ccm_initctx, ccm_set_ctx_params, ccm_stream_final, ccm_stream_update
gcm_aad_update, gcm_cipher, gcm_cipher_final, gcm_cipher_update
gcm_dinit, gcm_einit, gcm_get_ctx_params, gcm_initctx, gcm_one_shot
gcm_set_ctx_params, gcm_setiv, gcm_stream_final, gcm_stream_update
tdes_dinit, tdes_dupctx, tdes_einit, tdes_freectx
tdes_get_ctx_params, tdes_gettable_ctx_params, tdes_newctx
PROV_CIPHER_HW_des_*,
padblock, unpadblock, tlsunpadblock, fillblock, trailingdata

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14209)

show more ...


providers/implementations/ciphers/cipher_aes_ccm.c
providers/implementations/ciphers/cipher_aes_ccm_hw.c
providers/implementations/ciphers/cipher_aes_ccm_hw_aesni.inc
providers/implementations/ciphers/cipher_aes_ccm_hw_t4.inc
providers/implementations/ciphers/cipher_aes_gcm.c
providers/implementations/ciphers/cipher_aes_gcm_hw.c
providers/implementations/ciphers/cipher_aes_gcm_hw_aesni.inc
providers/implementations/ciphers/cipher_aes_gcm_hw_armv8.inc
providers/implementations/ciphers/cipher_aes_gcm_hw_t4.inc
providers/implementations/ciphers/cipher_aes_ocb.c
providers/implementations/ciphers/cipher_aria_ccm.c
providers/implementations/ciphers/cipher_aria_ccm_hw.c
providers/implementations/ciphers/cipher_aria_gcm.c
providers/implementations/ciphers/cipher_aria_gcm_hw.c
providers/implementations/ciphers/cipher_chacha20.c
providers/implementations/ciphers/cipher_chacha20.h
providers/implementations/ciphers/cipher_chacha20_poly1305.c
providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
providers/implementations/ciphers/cipher_des.c
providers/implementations/ciphers/cipher_des.h
providers/implementations/ciphers/cipher_des_hw.c
providers/implementations/ciphers/cipher_tdes.h
providers/implementations/ciphers/cipher_tdes_common.c
providers/implementations/ciphers/cipher_tdes_wrap.c
providers/implementations/ciphers/ciphercommon.c
providers/implementations/ciphers/ciphercommon_block.c
providers/implementations/ciphers/ciphercommon_ccm.c
providers/implementations/ciphers/ciphercommon_ccm_hw.c
providers/implementations/ciphers/ciphercommon_gcm.c
providers/implementations/ciphers/ciphercommon_gcm_hw.c
providers/implementations/ciphers/ciphercommon_local.h
providers/implementations/include/prov/ciphercommon.h
providers/implementations/include/prov/ciphercommon_aead.h
providers/implementations/include/prov/ciphercommon_ccm.h
providers/implementations/include/prov/ciphercommon_gcm.h

1...<<311312313314315316317318319320>>...1443