Commit 737fe7ea authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

make reinitialisation work for CMAC

parent b344a826
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -179,6 +179,8 @@ 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);
		ctx->nlast_block = 0;
		return 1;
		}
	/* Initialiase context */