openbsd-ports/devel/cryptopp/patches/patch-blowfish_h
dcoppa 6a1ea1cc3c Update to cryptopp-5.6.1
'go for it' espie@
2011-06-24 07:55:17 +00:00

16 lines
561 B
Plaintext

$OpenBSD: patch-blowfish_h,v 1.1 2011/06/24 07:55:18 dcoppa Exp $
Fix Blowfish minimum keylength to be 4 bytes (upstream rev 528).
--- blowfish.h.orig Fri Aug 6 18:44:34 2010
+++ blowfish.h Wed Jun 8 16:42:01 2011
@@ -9,7 +9,7 @@
NAMESPACE_BEGIN(CryptoPP)
//! _
-struct Blowfish_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 1, 56>, public FixedRounds<16>
+struct Blowfish_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 4, 56>, public FixedRounds<16>
{
static const char *StaticAlgorithmName() {return "Blowfish";}
};