forked from wolfSSL/wolfssl
Fix wc_HmacSizeByType for SHA224.
This commit is contained in:
@ -108,8 +108,8 @@ int wc_HKDF(int type, const byte* inKey, word32 inKeySz,
|
|||||||
int wc_HmacSizeByType(int type)
|
int wc_HmacSizeByType(int type)
|
||||||
{
|
{
|
||||||
if (!(type == MD5 || type == SHA || type == SHA256 || type == SHA384
|
if (!(type == MD5 || type == SHA || type == SHA256 || type == SHA384
|
||||||
|| type == SHA512 || type == BLAKE2B_ID)
|
|| type == SHA512 || type == BLAKE2B_ID
|
||||||
|| type == SHA224) {
|
|| type == SHA224)) {
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user