Add support for SHA256/192
authorFergus Dall <sidereal@google.com>
Mon, 12 Jun 2023 10:02:14 +0000 (20:02 +1000)
committerPauli <pauli@openssl.org>
Tue, 27 Jun 2023 22:00:43 +0000 (08:00 +1000)
commit81bafac5cbbd195ff9c53a06aaca7c3eacbb2fc0
treec08c6dc6997d7f719830609d190275d6b6ceba7d
parent8b7d5ea7dd602eb7c2c4bc5ad45489dc5fc711f6
Add support for SHA256/192

This is defined in NIST SP 800-208 as the truncation to 192 bits of
SHA256. Unlike other truncated hashes in the SHA2 suite, this variant
doesn't have a different initial state, it is just a pure truncation
of the output.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21180)
12 files changed:
CHANGES.md
crypto/sha/sha256.c
doc/man7/EVP_MD-SHA2.pod
include/crypto/sha.h
include/openssl/core_names.h.in
include/openssl/sha.h
providers/defltprov.c
providers/implementations/digests/sha2_prov.c
providers/implementations/include/prov/implementations.h
providers/implementations/include/prov/names.h
test/recipes/30-test_evp_data/evpmac_common.txt
test/recipes/30-test_evp_data/evpmd_sha.txt