diff options
Diffstat (limited to 'crypto/drbg.c')
-rw-r--r-- | crypto/drbg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c index 212d260220e3..86cffc600acd 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c | |||
@@ -728,11 +728,9 @@ static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, | |||
728 | LIST_HEAD(seedlist); | 728 | LIST_HEAD(seedlist); |
729 | LIST_HEAD(vdatalist); | 729 | LIST_HEAD(vdatalist); |
730 | 730 | ||
731 | if (!reseed) { | 731 | if (!reseed) |
732 | /* 10.1.2.3 step 2 */ | 732 | /* 10.1.2.3 step 2 -- memset(0) of C is implicit with kzalloc */ |
733 | memset(drbg->C, 0, drbg_statelen(drbg)); | ||
734 | memset(drbg->V, 1, drbg_statelen(drbg)); | 733 | memset(drbg->V, 1, drbg_statelen(drbg)); |
735 | } | ||
736 | 734 | ||
737 | drbg_string_fill(&seed1, drbg->V, drbg_statelen(drbg)); | 735 | drbg_string_fill(&seed1, drbg->V, drbg_statelen(drbg)); |
738 | list_add_tail(&seed1.list, &seedlist); | 736 | list_add_tail(&seed1.list, &seedlist); |