summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-06-03 15:38:09 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-06-04 13:41:18 +0200
commit90cb64ea21d0d1cbf3ad9997309bd697579e5200 (patch)
tree3f9d67d7202bc40eeb8bebaabf3e772dc0a91542 /lib
parent0ec158b688429286d43e1f27785c4b9cf37e83e4 (diff)
downloadgnutls-90cb64ea21d0d1cbf3ad9997309bd697579e5200.tar.gz
fips140: reset the reseed counter only on reseed
Diffstat (limited to 'lib')
-rw-r--r--lib/nettle/int/drbg-aes.c2
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;
}