diff options
author | Andy Polyakov <appro@openssl.org> | 2004-07-25 20:24:49 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-07-25 20:24:49 +0000 |
commit | f10725a6e19f0d72df5789e38601918539e64082 (patch) | |
tree | 633619ca0d93bc2859c8d689fd15c2a5f0d00017 /crypto/hmac | |
parent | 0f71b77d5c6a86d459eab429d8b1258b746733ed (diff) |
Zero key-length for HMAC is apparently OK.
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/hmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index b1aa05b2ea..16d95e08d5 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -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; } |