diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-03 15:38:09 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-04 13:41:18 +0200 |
commit | 90cb64ea21d0d1cbf3ad9997309bd697579e5200 (patch) | |
tree | 3f9d67d7202bc40eeb8bebaabf3e772dc0a91542 /lib/nettle | |
parent | 0ec158b688429286d43e1f27785c4b9cf37e83e4 (diff) | |
download | gnutls-90cb64ea21d0d1cbf3ad9997309bd697579e5200.tar.gz |
fips140: reset the reseed counter only on reseed
Diffstat (limited to 'lib/nettle')
-rw-r--r-- | lib/nettle/int/drbg-aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nettle/int/drbg-aes.c b/lib/nettle/int/drbg-aes.c index 6835385356..f8b693bcd1 100644 --- a/lib/nettle/int/drbg-aes.c +++ b/lib/nettle/int/drbg-aes.c @@ -67,7 +67,6 @@ drbg_aes_update(struct drbg_aes_ctx *ctx, memcpy(ctx->v, &tmp[DRBG_AES_KEY_SIZE], AES_BLOCK_SIZE); - ctx->reseed_counter = 1; ctx->seeded = 1; } @@ -93,6 +92,7 @@ drbg_aes_reseed(struct drbg_aes_ctx *ctx, memxor(tmp, entropy, entropy_size); drbg_aes_update(ctx, tmp); + ctx->reseed_counter = 1; return 1; } |