]> git.ipfire.org Git - thirdparty/openssl.git/commit
apps: test enc -P, -nosalt, -md and -iter options
authorJakub Zelenka <jakub.zelenka@openssl.foundation>
Tue, 14 Jul 2026 15:38:03 +0000 (17:38 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Mon, 27 Jul 2026 09:11:41 +0000 (11:11 +0200)
commitf26d632a0e4bb273a373b8554db79d08096575ca
tree83c19e7070e833a52347836df3e12b0e4d1f594f
parentae6309aede393e2891036c5da50baa55e2c5e5a5
apps: test enc -P, -nosalt, -md and -iter options

Several enc options were not exercised by any test. Add subtests
covering -P/-p printing of the derived salt, key and iv (deterministic
with a fixed salt and PBKDF2) together with the -nosalt variant that
omits the salt line, a -nosalt encrypt/decrypt round-trip, -md selecting
the key derivation digest with a mismatching digest that must fail to
decrypt, and -iter setting the PBKDF2 iteration count with a mismatching
count that must fail to decrypt.

Assisted-by: Claude:claude-opus-4-8
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Daniel Kubec <kubec@openssl.foundation>
MergeDate: Mon Jul 27 09:11:47 2026
(Merged from https://github.com/openssl/openssl/pull/31948)
test/recipes/20-test_enc.t