FreeRDP
TestCryptoCipher.c File Reference
#include <winpr/crt.h>
#include <winpr/print.h>
#include <winpr/crypto.h>
#include <winpr/ssl.h>

Functions

static BOOL test_crypto_cipher_aes_128_cbc ()
 
static BOOL test_crypto_cipher_rc4 ()
 
static BOOL test_crypto_cipher_key ()
 
int TestCryptoCipher (int argc, char *argv[])
 

Variables

static const BYTETEST_RC4_KEY = (BYTE*) "Key"
 
static const char * TEST_RC4_PLAINTEXT = "Plaintext"
 
static const BYTETEST_RC4_CIPHERTEXT = (BYTE*) "\xBB\xF3\x16\xE8\xD9\x40\xAF\x0A\xD3"
 
static const BYTETEST_RAND_DATA
 
static const BYTETEST_CIPHER_KEY
 
static const BYTETEST_CIPHER_IV
 

Function Documentation

static BOOL test_crypto_cipher_aes_128_cbc ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL test_crypto_cipher_key ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL test_crypto_cipher_rc4 ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const BYTE* TEST_CIPHER_IV
static
Initial value:
= (BYTE*)
"\xFE\xE3\x9F\xF0\xD1\x5E\x37\x0C\xAB\xAB\x9B\x04\xF3\xDB\x99\x15"
unsigned char BYTE
Definition: LOMHash.c:3
const BYTE* TEST_CIPHER_KEY
static
Initial value:
= (BYTE*)
"\x9D\x7C\xC0\xA1\x94\x3B\x07\x67\x2F\xD3\x83\x10\x51\x83\x38\x0E"
"\x1C\x74\x8C\x4E\x15\x79\xD6\xFF\xE2\xF0\x37\x7F\x8C\xD7\xD2\x13"
unsigned char BYTE
Definition: LOMHash.c:3
const BYTE* TEST_RAND_DATA
static
Initial value:
= (BYTE*)
"\x1F\xC2\xEE\x4C\xA3\x66\x80\xA2\xCE\xFE\x56\xB4\x9E\x08\x30\x96"
"\x33\x6A\xA9\x6D\x36\xFD\x3C\xB7\x83\x04\x4E\x5E\xDC\x22\xCD\xF3"
"\x48\xDF\x3A\x2A\x61\xF1\xA8\xFA\x1F\xC6\xC7\x1B\x81\xB4\xE1\x0E"
"\xCB\xA2\xEF\xA1\x12\x4A\x83\xE5\x1D\x72\x1D\x2D\x26\xA8\x6B\xC0"
unsigned char BYTE
Definition: LOMHash.c:3
const BYTE* TEST_RC4_CIPHERTEXT = (BYTE*) "\xBB\xF3\x16\xE8\xD9\x40\xAF\x0A\xD3"
static
const BYTE* TEST_RC4_KEY = (BYTE*) "Key"
static
const char* TEST_RC4_PLAINTEXT = "Plaintext"
static