diff options
-rw-r--r-- | factory.h | 1 | ||||
-rw-r--r-- | validat1.cpp | 2 | ||||
-rw-r--r-- | validat2.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ #include "cryptlib.h" #include <map> +#include <vector> NAMESPACE_BEGIN(CryptoPP) diff --git a/validat1.cpp b/validat1.cpp index 365fca5..1fb26c7 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -1119,7 +1119,7 @@ bool ValidateBlowfish() cout << "\nBlowfish validation suite running...\n\n"; HexEncoder output(new FileSink(cout)); - char *key[]={"abcdefghijklmnopqrstuvwxyz", "Who is John Galt?"}; + const char *key[]={"abcdefghijklmnopqrstuvwxyz", "Who is John Galt?"}; byte *plain[]={(byte *)"BLOWFISH", (byte *)"\xfe\xdc\xba\x98\x76\x54\x32\x10"}; byte *cipher[]={(byte *)"\x32\x4e\xd0\xfe\xf4\x13\xa2\x03", (byte *)"\xcc\x91\x73\x2b\x80\x22\xf6\x84"}; byte out[8], outplain[8]; diff --git a/validat2.cpp b/validat2.cpp index ad00493..aba5d6c 100644 --- a/validat2.cpp +++ b/validat2.cpp @@ -261,7 +261,7 @@ bool ValidateRSA() bool pass = true, fail; { - char *plain = "Everyone gets Friday off."; + const char *plain = "Everyone gets Friday off."; byte *signature = (byte *) "\x05\xfa\x6a\x81\x2f\xc7\xdf\x8b\xf4\xf2\x54\x25\x09\xe0\x3e\x84" "\x6e\x11\xb9\xc6\x20\xbe\x20\x09\xef\xb4\x40\xef\xbc\xc6\x69\x21" |