summaryrefslogtreecommitdiff
path: root/src/fips.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-09-11 10:38:04 +0000
committerWerner Koch <wk@gnupg.org>2008-09-11 10:38:04 +0000
commit49ead26adbb5165f11b3a34f8ffef5ea7cb365d9 (patch)
tree830c69727f0e1de4fdb8c49f4d318c9705a327b5 /src/fips.c
parentce7846ac4d2f69d910d86b5b2370a11ffa3ffb9e (diff)
downloadlibgcrypt-49ead26adbb5165f11b3a34f8ffef5ea7cb365d9.tar.gz
Implemented more self-tests.
Diffstat (limited to 'src/fips.c')
-rw-r--r--src/fips.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fips.c b/src/fips.c
index 73a5816a..0402e622 100644
--- a/src/fips.c
+++ b/src/fips.c
@@ -538,10 +538,12 @@ _gcry_fips_run_selftests (void)
if (run_hmac_selftests ())
goto leave;
- if (run_pubkey_selftests ())
+ /* Run random tests before the pubkey tests because the latter
+ require random. */
+ if (run_random_selftests ())
goto leave;
- if (run_random_selftests ())
+ if (run_pubkey_selftests ())
goto leave;
/* Now check the integrity of the binary. We do this this after