]> feistymeow.org Git - feisty_meow.git/commitdiff
back to previously working blowfish key size
authorChris Koeritz <fred@gruntose.com>
Sun, 27 Sep 2026 11:58:19 +0000 (07:58 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 27 Sep 2026 11:58:19 +0000 (07:58 -0400)
this reverts to a key size of 64 for borked blowfish, which was working
before with essentially the same code.  now, openssl is back to barfing
with any key size at all for blowfish, yet the twofish implementation
using the same openssl mechanisms is working flawlessly.  did openssl
really break blowfish completely, then fix it in the previous version of
their code, but then break it again in their most recent code???

nucleus/library/crypto/borked_blowfish_crypto.h

index 470e7691729d10ea75e1a10c2e5ec0e0b7f2d3cc..cf66b4c26c175023d8ef4d490e63f802d74bbebe 100644 (file)
@@ -57,7 +57,7 @@ public:
   // blowfish relevant values for appropriate key sizes.
   virtual int minimum_key_size_in_bits() const { return static_minimum_key_size_in_bits(); }
   virtual int maximum_key_size_in_bits() const { return static_maximum_key_size_in_bits(); }
-  static int static_minimum_key_size_in_bits() { return 128; }
+  static int static_minimum_key_size_in_bits() { return 64; }
     // officially, this is 32.  but openssl fails occasionally with less than 64 bits.
   static int static_maximum_key_size_in_bits() { return 448; }
 };