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:
5a34fcd
)
make reinitialisation work for CMAC
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 11 Apr 2012 12:26:41 +0000
(12:26 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 11 Apr 2012 12:26:41 +0000
(12:26 +0000)
crypto/cmac/cmac.c
patch
|
blob
|
history
diff --git
a/crypto/cmac/cmac.c
b/crypto/cmac/cmac.c
index 064b67d073262b526cf3c2f7d3866c2e0164923f..88a323da9c7490ab82fa5c6a06c649627eb426fc 100644
(file)
--- a/
crypto/cmac/cmac.c
+++ b/
crypto/cmac/cmac.c
@@
-151,6
+151,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, bl);
+ ctx->nlast_block = 0;
return 1;
}
/* Initialiase context */