projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f71b77
)
Zero key-length for HMAC is apparently OK.
author
Andy Polyakov
<appro@openssl.org>
Sun, 25 Jul 2004 20:24:49 +0000
(20:24 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 25 Jul 2004 20:24:49 +0000
(20:24 +0000)
crypto/hmac/hmac.c
patch
|
blob
|
history
diff --git
a/crypto/hmac/hmac.c
b/crypto/hmac/hmac.c
index b1aa05b2eaa5b2b2e3a8cbc79f81307286b05f47..16d95e08d52f44cf008f1911291b5308f07ec1f9 100644
(file)
--- 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
{
}
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;
}
memcpy(ctx->key,key,len);
ctx->key_length=len;
}