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:
a7612c5
)
fix reset fix
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 11 Apr 2012 15:05:45 +0000
(15:05 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 11 Apr 2012 15:05:45 +0000
(15:05 +0000)
crypto/cmac/cmac.c
patch
|
blob
|
history
diff --git
a/crypto/cmac/cmac.c
b/crypto/cmac/cmac.c
index 7ae776e3fcfc93cdabd6e51cf8432b876b761cdc..8004ae04bf35bcbe59d5005670be476ac445e9bd 100644
(file)
--- a/
crypto/cmac/cmac.c
+++ b/
crypto/cmac/cmac.c
@@
-179,7
+179,7
@@
int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
return 0;
if (!EVP_EncryptInit_ex(&ctx->cctx, NULL, NULL, NULL, zero_iv))
return 0;
- memset(ctx->tbl, 0,
bl
);
+ memset(ctx->tbl, 0,
M_EVP_CIPHER_CTX_block_size(&ctx->cctx)
);
ctx->nlast_block = 0;
return 1;
}