From: Miroslav Lichvar Date: Mon, 12 Mar 2018 18:06:21 +0000 (+0100) Subject: hash: add support for SHA-3 with libtomcrypt X-Git-Tag: 3.3-pre1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e83d808dfd82e87e48cbb83c6ec0877a2008310d;p=thirdparty%2Fchrony.git hash: add support for SHA-3 with libtomcrypt --- diff --git a/hash_tomcrypt.c b/hash_tomcrypt.c index db2f9f04..5e16233f 100644 --- a/hash_tomcrypt.c +++ b/hash_tomcrypt.c @@ -62,6 +62,12 @@ static const struct hash hashes[] = { #ifdef LTC_SHA512 { "SHA512", "sha512", &sha512_desc }, #endif +#ifdef LTC_SHA3 + { "SHA3-224", "sha3-224", &sha3_224_desc }, + { "SHA3-256", "sha3-256", &sha3_256_desc }, + { "SHA3-384", "sha3-384", &sha3_384_desc }, + { "SHA3-512", "sha3-512", &sha3_512_desc }, +#endif #ifdef LTC_TIGER { "TIGER", "tiger", &tiger_desc }, #endif