diff --git a/library/cmac.c b/library/cmac.c index 4c25a67d0..09a705d65 100644 --- a/library/cmac.c +++ b/library/cmac.c @@ -59,7 +59,6 @@ void mbedtls_cmac_init( mbedtls_cmac_context *ctx ) memset( ctx, 0, sizeof( mbedtls_cmac_context ) ); } - /* * Multiplication by u in the Galois field of GF(2^n) * @@ -267,13 +266,11 @@ int mbedtls_cmac_generate( mbedtls_cmac_context *ctx, unsigned char *tag, size_t tag_len ) { - unsigned char *state; unsigned char *M_last; int n, j, ret, needs_padding; size_t olen, block_size, i; - ret = 0; block_size = ctx->cipher_ctx.cipher_info->block_size;