Merge pull request #643 from dgarske/fix_hmac_224

Fix wc_HmacSizeByType for SHA224.
This commit is contained in:
Sean Parkinson
2016-11-23 13:28:37 +10:00
committed by GitHub

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;
}