Merge pull request #643 from dgarske/fix_hmac_224

Fix wc_HmacSizeByType for SHA224.
pull/644/head
Sean Parkinson 2016-11-23 13:28:37 +10:00 committed by GitHub
commit 8a8274d403
1 changed files with 2 additions and 2 deletions

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