fix gcc compile errors and warnings

This commit is contained in:
weidai 2007-08-14 00:55:43 +00:00
parent d831dd8e85
commit 7a6d06eee0
3 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#include "cryptlib.h"
#include <map>
#include <vector>
NAMESPACE_BEGIN(CryptoPP)

View File

@ -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];

View File

@ -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"