提交 bbe0c8c5 编写于 作者: D Dr. Stephen Henson

make reinitialisation work for CMAC

上级 5a34fcd7
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册