From fecbd5b18b360aa60859e1b990f426a05bad6518 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) --- blowfish.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blowfish.h b/blowfish.h index 4707ce19..ebc4f94d 100644 --- a/blowfish.h +++ b/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";} };