aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-10-27 16:49:36 -0400
committerJack Lloyd <[email protected]>2015-10-27 16:49:36 -0400
commit9b4ea75a1d7a53e5d96f91d99cafe4b53fcda814 (patch)
tree25c0ed040325bf1f39c87ef57607daaf81cdde7e /src
parent2844690385ba5b561f7e3bb1ba579409fe47a5ab (diff)
Reduce workfactors in ffi tests to speed things along
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_ffi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp
index edc06f90a..75e81de97 100644
--- a/src/tests/test_ffi.cpp
+++ b/src/tests/test_ffi.cpp
@@ -190,7 +190,7 @@ TEST_CASE("FFI bcrypt", "[ffi]")
std::vector<uint8_t> outbuf(62);
size_t ol = outbuf.size();
- CHECK_THAT(botan_bcrypt_generate(outbuf.data(), &ol, "password", rng, 10, 0), Equals(0));
+ CHECK_THAT(botan_bcrypt_generate(outbuf.data(), &ol, "password", rng, 3, 0), Equals(0));
botan_rng_destroy(rng);
REQUIRE(botan_bcrypt_is_valid("wrong", reinterpret_cast<const char*>(outbuf.data())) < 0);
@@ -203,7 +203,7 @@ TEST_CASE("FFI RSA", "[ffi]")
botan_rng_init(&rng, "system");
botan_privkey_t priv;
- REQUIRE_THAT(botan_privkey_create_rsa(&priv, rng, 2048), Equals(0));
+ REQUIRE_THAT(botan_privkey_create_rsa(&priv, rng, 1024), Equals(0));
botan_pubkey_t pub;
CHECK_THAT(botan_privkey_export_pubkey(&pub, priv), Equals(0));