diff options
Diffstat (limited to 'crypto/tgr192.c')
-rw-r--r-- | crypto/tgr192.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/tgr192.c b/crypto/tgr192.c index 87403556fd0b..3c7af0d1ff7a 100644 --- a/crypto/tgr192.c +++ b/crypto/tgr192.c | |||
@@ -612,7 +612,7 @@ static int tgr160_final(struct shash_desc *desc, u8 * out) | |||
612 | 612 | ||
613 | tgr192_final(desc, D); | 613 | tgr192_final(desc, D); |
614 | memcpy(out, D, TGR160_DIGEST_SIZE); | 614 | memcpy(out, D, TGR160_DIGEST_SIZE); |
615 | memset(D, 0, TGR192_DIGEST_SIZE); | 615 | memzero_explicit(D, TGR192_DIGEST_SIZE); |
616 | 616 | ||
617 | return 0; | 617 | return 0; |
618 | } | 618 | } |
@@ -623,7 +623,7 @@ static int tgr128_final(struct shash_desc *desc, u8 * out) | |||
623 | 623 | ||
624 | tgr192_final(desc, D); | 624 | tgr192_final(desc, D); |
625 | memcpy(out, D, TGR128_DIGEST_SIZE); | 625 | memcpy(out, D, TGR128_DIGEST_SIZE); |
626 | memset(D, 0, TGR192_DIGEST_SIZE); | 626 | memzero_explicit(D, TGR192_DIGEST_SIZE); |
627 | 627 | ||
628 | return 0; | 628 | return 0; |
629 | } | 629 | } |