Merge pull request #1713 from JacobBarthelmeh/UnitTests
fix buffer types for ARC4 test
This commit is contained in:
commit
84c1b633fb
@ -9528,10 +9528,7 @@ static int test_wc_Arc4SetKey (void)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
#ifndef NO_RC4
|
#ifndef NO_RC4
|
||||||
Arc4 arc;
|
Arc4 arc;
|
||||||
const char* key[] =
|
const char* key = "\x01\x23\x45\x67\x89\xab\xcd\xef";
|
||||||
{
|
|
||||||
"\x01\x23\x45\x67\x89\xab\xcd\xef"
|
|
||||||
};
|
|
||||||
int keyLen = 8;
|
int keyLen = 8;
|
||||||
|
|
||||||
printf(testingFmt, "wc_Arch4SetKey()");
|
printf(testingFmt, "wc_Arch4SetKey()");
|
||||||
@ -9566,9 +9563,9 @@ static int test_wc_Arc4Process (void)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
#ifndef NO_RC4
|
#ifndef NO_RC4
|
||||||
Arc4 enc, dec;
|
Arc4 enc, dec;
|
||||||
const char* key[] = {"\x01\x23\x45\x67\x89\xab\xcd\xef"};
|
const char* key = "\x01\x23\x45\x67\x89\xab\xcd\xef";
|
||||||
int keyLen = 8;
|
int keyLen = 8;
|
||||||
const char* input[] = {"\x01\x23\x45\x67\x89\xab\xcd\xef"};
|
const char* input = "\x01\x23\x45\x67\x89\xab\xcd\xef";
|
||||||
byte cipher[8];
|
byte cipher[8];
|
||||||
byte plain[8];
|
byte plain[8];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user