X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=crypto%2Fvmac.c;h=df76a816cfb22f68ac173d3ef01e2e2f9e166c72;hb=7c7c946356a9d1d398aabba1fcf9c6637e35c7b6;hp=bf2d3a89845fb329de8cfe67aed4a8084f2b75b0;hpb=a26084749b4fa2ea42705e5c3ed398b445e9c3ce;p=firefly-linux-kernel-4.4.55.git diff --git a/crypto/vmac.c b/crypto/vmac.c index bf2d3a89845f..df76a816cfb2 100644 --- a/crypto/vmac.c +++ b/crypto/vmac.c @@ -613,7 +613,7 @@ static int vmac_final(struct shash_desc *pdesc, u8 *out) } mac = vmac(ctx->partial, ctx->partial_size, nonce, NULL, ctx); memcpy(out, &mac, sizeof(vmac_t)); - memset(&mac, 0, sizeof(vmac_t)); + memzero_explicit(&mac, sizeof(vmac_t)); memset(&ctx->__vmac_ctx, 0, sizeof(struct vmac_ctx)); ctx->partial_size = 0; return 0;