Add support for truncated SHA512 variants.
authorjsing <jsing@openbsd.org>
Fri, 14 Apr 2023 10:45:15 +0000 (10:45 +0000)
committerjsing <jsing@openbsd.org>
Fri, 14 Apr 2023 10:45:15 +0000 (10:45 +0000)
commit8e9acae64e1b2cea20706e99f8221269ced8aebe
tree4e4a1f8d3fcae65407d9fcaf15994554bc9d0375
parentf012b8a2840352ac0f725d738c43d2fb86813c67
Add support for truncated SHA512 variants.

This adds support for SHA512/224 and SHA512/256, as specified in FIPS
FIPS 180-4. These are truncated versions of the SHA512 hash.

ok tb@
lib/libcrypto/sha/sha512.c
lib/libcrypto/sha/sha_internal.h [new file with mode: 0644]