summaryrefslogtreecommitdiffstats
path: root/fips/rand
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-09-07 10:26:38 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-09-07 10:26:38 +0000
commitd98360392ae13211103d48b383906df359788f61 (patch)
treea1d423bdfb68c05e199a7385abf24e7b95299e91 /fips/rand
parent33987f2f45eef943ff5bdfb701b921ca149a83c8 (diff)
Put quick DRBG selftest return after first generate operation.
Diffstat (limited to 'fips/rand')
-rw-r--r--fips/rand/fips_drbg_selftest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fips/rand/fips_drbg_selftest.c b/fips/rand/fips_drbg_selftest.c
index 3e18c98609..a06c4fcfd8 100644
--- a/fips/rand/fips_drbg_selftest.c
+++ b/fips/rand/fips_drbg_selftest.c
@@ -226,6 +226,12 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td,
goto err2;
}
+ if (quick)
+ {
+ rv = 1;
+ goto err;
+ }
+
t.ent = td->entreseed;
t.entlen = td->entreseedlen;
@@ -283,12 +289,6 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td,
goto err2;
}
- if (quick)
- {
- rv = 1;
- goto err;
- }
-
t.ent = td->entg_pr;
t.entlen = td->entglen_pr;