mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
fix gcc compile errors and warnings
This commit is contained in:
parent
d831dd8e85
commit
7a6d06eee0
@ -3,6 +3,7 @@
|
||||
|
||||
#include "cryptlib.h"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
|
@ -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];
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user