Fix wc_HmacSizeByType for SHA224.

This commit is contained in:
David Garske
2016-11-22 14:45:10 -08:00
parent b61e6e1219
commit 16907de633

View File

@ -108,8 +108,8 @@ int wc_HKDF(int type, const byte* inKey, word32 inKeySz,
int wc_HmacSizeByType(int type)
{
if (!(type == MD5 || type == SHA || type == SHA256 || type == SHA384
|| type == SHA512 || type == BLAKE2B_ID)
|| type == SHA224) {
|| type == SHA512 || type == BLAKE2B_ID
|| type == SHA224)) {
return BAD_FUNC_ARG;
}