aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-28 13:51:54 -0500
committerJack Lloyd <[email protected]>2018-02-28 15:03:50 -0500
commitd7ee63924da94fe7e46af7012cde971ef7588732 (patch)
tree4ac666072b75f9f46474e491142e4128c422a50b /src/tests/data
parent3870a2a59a9940635a133fbe60ab05c9815a4d1c (diff)
Optimize FE1 format preserving encryption
Expose the state as the FPE_FE1 class which allows most values to be precomputed. Approx 6-8 times faster.
Diffstat (limited to 'src/tests/data')
-rw-r--r--src/tests/data/fpe_fe1.vec12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/data/fpe_fe1.vec b/src/tests/data/fpe_fe1.vec
index 4108a56a2..ba6720744 100644
--- a/src/tests/data/fpe_fe1.vec
+++ b/src/tests/data/fpe_fe1.vec
@@ -12,3 +12,15 @@ In = 48166
Out = 69575
Key = AABB
Tweak = CCDD
+
+Mod = 1000000000
+In = 8765309
+Out = 935673214
+Key = 00112233445566778899AABBCCDDEEFF
+Tweak = 0123456789
+
+Mod = 100000000000
+In = 8765309
+Out = 1082083628
+Key = 00112233445566778899AABBCCDDEEFF
+Tweak = 0123456789