FreeRDP
TestBase64.c File Reference
#include <freerdp/crypto/crypto.h>

Functions

int TestBase64 (int argc, char *argv[])
 

Variables

static const struct Encode64test encodeTests_base64 []
 
static const struct Encode64test encodeTests_base64url []
 

Function Documentation

◆ TestBase64()

int TestBase64 ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ encodeTests_base64

const struct Encode64test encodeTests_base64[]
static
Initial value:
= {
{ "\x00", 1, "AA==" },
{ "\x00\x00", 2, "AAA=" },
{ "\x00\x00\x00", 3, "AAAA" },
{ "0123456", 7, "MDEyMzQ1Ng==" },
{ "90123456", 8, "OTAxMjM0NTY=" },
{ "890123456", 9, "ODkwMTIzNDU2" },
{ "7890123456", 10, "Nzg5MDEyMzQ1Ng==" },
{ NULL, -1, NULL },
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:109

◆ encodeTests_base64url

const struct Encode64test encodeTests_base64url[]
static
Initial value:
= {
{ "\x00", 1, "AA" },
{ "\x00\x00", 2, "AAA" },
{ "\x00\x00\x00", 3, "AAAA" },
{ "01?34>6", 7, "MDE_MzQ-Ng" },
{ "90123456", 8, "OTAxMjM0NTY" },
{ "890123456", 9, "ODkwMTIzNDU2" },
{ "78?01>3456", 10, "Nzg_MDE-MzQ1Ng" },
{ NULL, -1, NULL },
}