]> git.ipfire.org Git - thirdparty/openssl.git/commit
Change PBES2 KDF default salt length to 16 bytes.
authorslontis <shane.lontis@oracle.com>
Mon, 28 Aug 2023 02:47:51 +0000 (12:47 +1000)
committerPauli <pauli@openssl.org>
Mon, 4 Sep 2023 04:15:34 +0000 (14:15 +1000)
commit3859a027259b5b571eaf5e8cf4c0704611950c2c
tree4abfb601d0be8a7ca2bf0b4032693f01865a3774
parent61cfc22b60e33bc77b1e1944759af48c8e58f0d2
Change PBES2 KDF default salt length to 16 bytes.

The PKCS5 (RFC 8018) standard uses a 64 bit salt length for PBE, and
recommends a minimum of 64 bits for PBES2. For FIPS compliance PBKDF2
requires a salt length of 128 bits.
This affects OpenSSL command line applications such as "genrsa" and "pkcs8"
and API's such as PEM_write_bio_PrivateKey() that are reliant on the
default salt length.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21858)
CHANGES.md
crypto/asn1/p5_pbe.c
crypto/asn1/p5_pbev2.c
crypto/asn1/p5_scrypt.c
doc/man3/PKCS5_PBE_keyivgen.pod
include/crypto/evp.h
test/recipes/15-test_genrsa.t
test/recipes/25-test_pkcs8.t