mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
moved the buffers, key, and iv around in the file so lean-psk would still build
This commit is contained in:
@@ -173,6 +173,36 @@ static int OpenNitroxDevice(int dma_mode,int dev_id)
|
|||||||
static RNG rng;
|
static RNG rng;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* use kB instead of mB for embedded benchmarking */
|
||||||
|
#ifdef BENCH_EMBEDDED
|
||||||
|
static byte plain [1024];
|
||||||
|
#else
|
||||||
|
static byte plain [1024*1024];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* use kB instead of mB for embedded benchmarking */
|
||||||
|
#ifdef BENCH_EMBEDDED
|
||||||
|
static byte cipher[1024];
|
||||||
|
#else
|
||||||
|
static byte cipher[1024*1024];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
static const byte key[] =
|
||||||
|
{
|
||||||
|
0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef,
|
||||||
|
0xfe,0xde,0xba,0x98,0x76,0x54,0x32,0x10,
|
||||||
|
0x89,0xab,0xcd,0xef,0x01,0x23,0x45,0x67
|
||||||
|
};
|
||||||
|
|
||||||
|
static const byte iv[] =
|
||||||
|
{
|
||||||
|
0x12,0x34,0x56,0x78,0x90,0xab,0xcd,0xef,
|
||||||
|
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
|
||||||
|
0x11,0x21,0x31,0x41,0x51,0x61,0x71,0x81
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/* so embedded projects can pull in tests on their own */
|
/* so embedded projects can pull in tests on their own */
|
||||||
#if !defined(NO_MAIN_DRIVER)
|
#if !defined(NO_MAIN_DRIVER)
|
||||||
@@ -191,6 +221,11 @@ int benchmark_test(void *args)
|
|||||||
wolfSSL_Debugging_ON();
|
wolfSSL_Debugging_ON();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)plain;
|
||||||
|
(void)cipher;
|
||||||
|
(void)key;
|
||||||
|
(void)iv;
|
||||||
|
|
||||||
#ifdef HAVE_CAVIUM
|
#ifdef HAVE_CAVIUM
|
||||||
int ret = OpenNitroxDevice(CAVIUM_DIRECT, CAVIUM_DEV_ID);
|
int ret = OpenNitroxDevice(CAVIUM_DIRECT, CAVIUM_DEV_ID);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
@@ -327,37 +362,6 @@ static const char blockType[] = "megs"; /* used in printf output */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* use kB instead of mB for embedded benchmarking */
|
|
||||||
#ifdef BENCH_EMBEDDED
|
|
||||||
static byte plain [1024];
|
|
||||||
#else
|
|
||||||
static byte plain [1024*1024];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
static const byte key[] =
|
|
||||||
{
|
|
||||||
0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef,
|
|
||||||
0xfe,0xde,0xba,0x98,0x76,0x54,0x32,0x10,
|
|
||||||
0x89,0xab,0xcd,0xef,0x01,0x23,0x45,0x67
|
|
||||||
};
|
|
||||||
|
|
||||||
static const byte iv[] =
|
|
||||||
{
|
|
||||||
0x12,0x34,0x56,0x78,0x90,0xab,0xcd,0xef,
|
|
||||||
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
|
|
||||||
0x11,0x21,0x31,0x41,0x51,0x61,0x71,0x81
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/* use kB instead of mB for embedded benchmarking */
|
|
||||||
#ifdef BENCH_EMBEDDED
|
|
||||||
static byte cipher[1024];
|
|
||||||
#else
|
|
||||||
static byte cipher[1024*1024];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_AES
|
#ifndef NO_AES
|
||||||
|
|
||||||
void bench_aes(int show)
|
void bench_aes(int show)
|
||||||
|
Reference in New Issue
Block a user