projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1beaf
)
CMAC reset fix (from HEAD)
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 14 Oct 2012 12:24:24 +0000
(12:24 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 14 Oct 2012 12:24:24 +0000
(12:24 +0000)
crypto/cmac/cmac.c
patch
|
blob
|
history
diff --git
a/crypto/cmac/cmac.c
b/crypto/cmac/cmac.c
index e6cade612007cfb7b9ca4c06723cff9cbaa5dcc5..ccc7e7a3bd61cee07146c3f0e3558fdab535eace 100644
(file)
--- a/
crypto/cmac/cmac.c
+++ b/
crypto/cmac/cmac.c
@@
-153,6
+153,8
@@
int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
return 0;
if (!M_EVP_EncryptInit_ex(&ctx->cctx, NULL, NULL, NULL, zero_iv))
return 0;
+ memset(ctx->tbl, 0, M_EVP_CIPHER_CTX_block_size(&ctx->cctx));
+ ctx->nlast_block = 0;
return 1;
}
/* Initialiase context */