aboutsummaryrefslogtreecommitdiff
path: root/blowfish_init.hpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-08 20:34:13 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-08 20:34:13 +0200
commit51528ecf3d90d09351322e172d91eed0cb45b2e7 (patch)
tree270b22937ccf770a70b287730e4113d1b934ac09 /blowfish_init.hpp
parentAdd compile-time key length check (diff)
downloadblowfish-51528ecf3d90d09351322e172d91eed0cb45b2e7.tar.xz
Add more test vectorsHEADmaster
Diffstat (limited to 'blowfish_init.hpp')
-rw-r--r--blowfish_init.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/blowfish_init.hpp b/blowfish_init.hpp
index 2d7bf6c..7e9a0d9 100644
--- a/blowfish_init.hpp
+++ b/blowfish_init.hpp
@@ -4,7 +4,8 @@
namespace Blowfish {
-constexpr std::size_t KEYLEN = 448 / sizeof(uint8_t);
+constexpr std::size_t KEYLEN_MIN = 32 / 8;
+constexpr std::size_t KEYLEN_MAX = 448 / 8;
constexpr std::size_t ROUNDS = 16;
constexpr std::size_t SUBKEYS = ROUNDS + 2;
constexpr std::size_t BOXES = 4;