diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-04-11 12:26:41 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-04-11 12:26:41 +0000 |
commit | bbe0c8c5be6aa2cbbb60c4aa80990cb995955903 (patch) | |
tree | fc7ffab63dee2fcab838d74c3df35a1c5211ede3 /crypto/cmac/cmac.c | |
parent | 5a34fcd76ed6a411b5cd33764cc02b1ce40fdb7a (diff) | |
download | openssl-bbe0c8c5be6aa2cbbb60c4aa80990cb995955903.tar.gz |
make reinitialisation work for CMAC
Diffstat (limited to 'crypto/cmac/cmac.c')
-rw-r--r-- | crypto/cmac/cmac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/cmac/cmac.c b/crypto/cmac/cmac.c index 064b67d073..88a323da9c 100644 --- 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 */ |