projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33987f2
)
Put quick DRBG selftest return after first generate operation.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 7 Sep 2011 10:26:38 +0000
(10:26 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 7 Sep 2011 10:26:38 +0000
(10:26 +0000)
fips/rand/fips_drbg_selftest.c
patch
|
blob
|
history
diff --git
a/fips/rand/fips_drbg_selftest.c
b/fips/rand/fips_drbg_selftest.c
index 3e18c98609e730b6ce5c9d15481bb1a4c63c2889..a06c4fcfd8b64df7c3e87bff8264ed7ca58afe20 100644
(file)
--- 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;