From 099b8e198041e710e018f15b1c97dab274df9592 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 12 May 2011 05:39:16 +0000 Subject: [PATCH] fix Blowfish minimum keylength to be 4 bytes (32 bits) --- trunk/c5/blowfish.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/c5/blowfish.h b/trunk/c5/blowfish.h index 4707ce19..ebc4f94d 100644 --- a/trunk/c5/blowfish.h +++ b/trunk/c5/blowfish.h @@ -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";} };