Merge pull request #1713 from JacobBarthelmeh/UnitTests

fix buffer types for ARC4 test
This commit is contained in:
toddouska 2018-07-25 14:17:10 -07:00 committed by GitHub
commit 84c1b633fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9528,10 +9528,7 @@ static int test_wc_Arc4SetKey (void)
int ret = 0;
#ifndef NO_RC4
Arc4 arc;
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;
printf(testingFmt, "wc_Arch4SetKey()");
@ -9566,9 +9563,9 @@ static int test_wc_Arc4Process (void)
int ret = 0;
#ifndef NO_RC4
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;
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 plain[8];