提交 f10725a6 编写于 作者: A Andy Polyakov

Zero key-length for HMAC is apparently OK.

上级 0f71b77d
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册