forked from wolfSSL/wolfssl
fold long lines
This commit is contained in:
14
tests/api.c
14
tests/api.c
@ -37325,13 +37325,21 @@ static void test_wolfssl_EVP_aes_gcm_zeroLen()
|
|||||||
{
|
{
|
||||||
/* Zero length plain text */
|
/* Zero length plain text */
|
||||||
|
|
||||||
byte key[] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; /* align */
|
byte key[] =
|
||||||
byte iv[] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; /* align */
|
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; /* align */
|
||||||
|
byte iv[] =
|
||||||
|
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
|
||||||
|
/* align */
|
||||||
byte plaintxt[0];
|
byte plaintxt[0];
|
||||||
int ivSz = 12;
|
int ivSz = 12;
|
||||||
int plaintxtSz = 0;
|
int plaintxtSz = 0;
|
||||||
unsigned char tag[16];
|
unsigned char tag[16];
|
||||||
unsigned char tag_kat[] = {0x53,0x0f,0x8a,0xfb,0xc7,0x45,0x36,0xb9,0xa9,0x63,0xb4,0xf1,0xc4,0xcb,0x73,0x8b};
|
unsigned char tag_kat[] =
|
||||||
|
{0x53,0x0f,0x8a,0xfb,0xc7,0x45,0x36,0xb9,
|
||||||
|
0xa9,0x63,0xb4,0xf1,0xc4,0xcb,0x73,0x8b};
|
||||||
|
|
||||||
byte ciphertxt[AES_BLOCK_SIZE * 4] = {0};
|
byte ciphertxt[AES_BLOCK_SIZE * 4] = {0};
|
||||||
byte decryptedtxt[AES_BLOCK_SIZE * 4] = {0};
|
byte decryptedtxt[AES_BLOCK_SIZE * 4] = {0};
|
||||||
|
Reference in New Issue
Block a user