Changed paths:
M providers/implementations/kdfs/sshkdf.c
Log Message:
-----------
SSHKDF: refuse a digest that has no output to avoid infinite loop
The key derivation specified by SSH appends one digest per round until
it has enough key material. With a zero-size digest, such as the NULL
digest, it leads to an infinite loop.
Check the digest size of the supplied digest algorithm and error out
if it is non-positive.
Fixes: 8d76481b189b "Implement SSH KDF"
Assisted-by: Claude:claude-mythos-5-2
Reviewed-by: Neil Horman <nho...@openssl.org>
Reviewed-by: Tomas Mraz <to...@openssl.foundation>
Reviewed-by: Paul Dale <paul...@oracle.com>
Reviewed-by: Eugene Syromiatnikov <es...@openssl.org>
Merge-date: Tue Nov 24 16:26:39 2026
Merged-from: https://github.com/openssl/openssl/pull/33923 (cherry picked from commit dce11301ff54174df95b9d593bd873e8e50f0938)