aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-31 08:23:30 -0400
committerJack Lloyd <[email protected]>2017-08-31 08:23:30 -0400
commit7fecb1254232311d5f2ca62f9cda1e12a4b2558c (patch)
tree2e2cd8ef8ca016310d4cc9aa6bee7abc96c39e2f /src/lib/ffi
parentdf4287c3c763de14b262ed39d54b3de552adbefb (diff)
More MSVC warnings fixes
Diffstat (limited to 'src/lib/ffi')
-rw-r--r--src/lib/ffi/ffi_kdf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi_kdf.cpp b/src/lib/ffi/ffi_kdf.cpp
index 4eca31773..1a4c40893 100644
--- a/src/lib/ffi/ffi_kdf.cpp
+++ b/src/lib/ffi/ffi_kdf.cpp
@@ -72,7 +72,7 @@ int botan_bcrypt_generate(uint8_t* out, size_t* out_len,
if(flags != 0)
return BOTAN_FFI_ERROR_BAD_FLAG;
- if(wf < 2 || wf > 30)
+ if(wf < 4 || wf > 18)
throw FFI_Error("Bad bcrypt work factor " + std::to_string(wf));
Botan::RandomNumberGenerator& rng = safe_get(rng_obj);