diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-04-11 15:05:07 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-04-11 15:05:07 +0000 |
commit | 80eb43519e174f66c5077948edeba5a3d7854a63 (patch) | |
tree | 79ee0b4bde47ed75d9ec10fe05e880621ea75fd1 /crypto/cmac | |
parent | bbe0c8c5be6aa2cbbb60c4aa80990cb995955903 (diff) | |
download | openssl-80eb43519e174f66c5077948edeba5a3d7854a63.tar.gz |
fix reset fix
Diffstat (limited to 'crypto/cmac')
-rw-r--r-- | crypto/cmac/cmac.c | 2 |
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; } |