summaryrefslogtreecommitdiffstats
path: root/crypto/cmac/cmac.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-04-11 15:05:07 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-04-11 15:05:07 +0000
commit80eb43519e174f66c5077948edeba5a3d7854a63 (patch)
tree79ee0b4bde47ed75d9ec10fe05e880621ea75fd1 /crypto/cmac/cmac.c
parentbbe0c8c5be6aa2cbbb60c4aa80990cb995955903 (diff)
fix reset fix
Diffstat (limited to 'crypto/cmac/cmac.c')
-rw-r--r--crypto/cmac/cmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cmac/cmac.c b/crypto/cmac/cmac.c
index 88a323da9c..3e6afc70db 100644
--- a/crypto/cmac/cmac.c
+++ b/crypto/cmac/cmac.c
@@ -151,7 +151,7 @@ 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);
+ memset(ctx->tbl, 0, M_EVP_CIPHER_CTX_block_size(&ctx->cctx));
ctx->nlast_block = 0;
return 1;
}