diff options
Diffstat (limited to 'crypto/vmac.c')
-rw-r--r-- | crypto/vmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/vmac.c b/crypto/vmac.c index 2eb11a30c29c..d84c24bd7ff7 100644 --- a/crypto/vmac.c +++ b/crypto/vmac.c | |||
@@ -613,7 +613,7 @@ static int vmac_final(struct shash_desc *pdesc, u8 *out) | |||
613 | } | 613 | } |
614 | mac = vmac(ctx->partial, ctx->partial_size, nonce, NULL, ctx); | 614 | mac = vmac(ctx->partial, ctx->partial_size, nonce, NULL, ctx); |
615 | memcpy(out, &mac, sizeof(vmac_t)); | 615 | memcpy(out, &mac, sizeof(vmac_t)); |
616 | memset(&mac, 0, sizeof(vmac_t)); | 616 | memzero_explicit(&mac, sizeof(vmac_t)); |
617 | memset(&ctx->__vmac_ctx, 0, sizeof(struct vmac_ctx)); | 617 | memset(&ctx->__vmac_ctx, 0, sizeof(struct vmac_ctx)); |
618 | ctx->partial_size = 0; | 618 | ctx->partial_size = 0; |
619 | return 0; | 619 | return 0; |