mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
fix buffer types for ARC4 test
This commit is contained in:
@@ -9406,10 +9406,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()");
|
||||||
@@ -9444,9 +9441,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];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user