mirror of
https://github.com/openssl/openssl.git
synced 2024-11-24 18:43:34 +08:00
Zero key-length for HMAC is apparently OK.
This commit is contained in:
parent
0f71b77d5c
commit
f10725a6e1
@ -89,7 +89,7 @@ void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
||||
}
|
||||
else
|
||||
{
|
||||
OPENSSL_assert(len>0 && len <= (int)sizeof(ctx->key));
|
||||
OPENSSL_assert(len>=0 && len<=(int)sizeof(ctx->key));
|
||||
memcpy(ctx->key,key,len);
|
||||
ctx->key_length=len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user