aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-10 18:21:48 -0500
committerJack Lloyd <[email protected]>2018-03-10 18:21:48 -0500
commit5d66546778498c4b9eb5849ad0847eeff2805766 (patch)
tree859a7bdbb3029b8ab00901b0f69e0815af29551a /src/cli
parente742386cb340f4966e880168772975f9dd532a90 (diff)
Fix error in FPE_FE1
An implementation mistake led to choosing a >= b when the original paper assumes a <= b. Add a boolean to control which version is used. Increase the default FE1 rounds to 5 for a safety factor. GH #500
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index fb47581eb..90ddafbdf 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -1372,7 +1372,7 @@ class Speed final : public Command
Botan::BigInt x = 1;
- Botan::FPE_FE1 fpe_fe1(n, 3, "HMAC(SHA-256)");
+ Botan::FPE_FE1 fpe_fe1(n);
fpe_fe1.set_key(key);
while(enc_timer->under(runtime))