X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=crypto%2Fwp512.c;h=ec64e7762fbb55a579fefd781757a9d29182f5da;hb=656b5def741af0379c4be81a5e298df27e66634d;hp=180f1d6e03f48fc20ef787061d8866e6af429c68;hpb=0ced14fbda44bf9c4977f1b01ae1077b944b94ab;p=cascardo%2Flinux.git diff --git a/crypto/wp512.c b/crypto/wp512.c index 180f1d6e03f4..ec64e7762fbb 100644 --- a/crypto/wp512.c +++ b/crypto/wp512.c @@ -1102,8 +1102,8 @@ static int wp384_final(struct shash_desc *desc, u8 *out) u8 D[64]; wp512_final(desc, D); - memcpy (out, D, WP384_DIGEST_SIZE); - memset (D, 0, WP512_DIGEST_SIZE); + memcpy(out, D, WP384_DIGEST_SIZE); + memzero_explicit(D, WP512_DIGEST_SIZE); return 0; } @@ -1113,8 +1113,8 @@ static int wp256_final(struct shash_desc *desc, u8 *out) u8 D[64]; wp512_final(desc, D); - memcpy (out, D, WP256_DIGEST_SIZE); - memset (D, 0, WP512_DIGEST_SIZE); + memcpy(out, D, WP256_DIGEST_SIZE); + memzero_explicit(D, WP512_DIGEST_SIZE); return 0; }