diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-08 20:34:13 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-08 20:34:13 +0200 |
commit | 51528ecf3d90d09351322e172d91eed0cb45b2e7 (patch) | |
tree | 270b22937ccf770a70b287730e4113d1b934ac09 /blowfish_init.hpp | |
parent | Add compile-time key length check (diff) | |
download | blowfish-51528ecf3d90d09351322e172d91eed0cb45b2e7.tar.xz |
Diffstat (limited to 'blowfish_init.hpp')
-rw-r--r-- | blowfish_init.hpp | 3 |
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; |