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

Functions

static BOOL test_crypto_hash_md5 (void)
 
static BOOL test_crypto_hash_md4 (void)
 
static BOOL test_crypto_hash_sha1 (void)
 
static BOOL test_crypto_hash_hmac_md5 (void)
 
static BOOL test_crypto_hash_hmac_sha1 (void)
 
int TestCryptoHash (int argc, char *argv[])
 

Variables

static const char TEST_MD5_DATA [] = "test"
 
static const BYTE TEST_MD5_HASH []
 
static const char TEST_MD4_DATA [] = "test"
 
static const BYTE TEST_MD4_HASH []
 
static const char TEST_SHA1_DATA [] = "test"
 
static const BYTE TEST_SHA1_HASH []
 
static const char TEST_HMAC_MD5_DATA [] = "Hi There"
 
static const BYTE TEST_HMAC_MD5_KEY []
 
static const BYTE TEST_HMAC_MD5_HASH []
 
static const char TEST_HMAC_SHA1_DATA [] = "Hi There"
 
static const BYTE TEST_HMAC_SHA1_KEY []
 
static const BYTE TEST_HMAC_SHA1_HASH []
 

Function Documentation

◆ test_crypto_hash_hmac_md5()

static BOOL test_crypto_hash_hmac_md5 ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_crypto_hash_hmac_sha1()

static BOOL test_crypto_hash_hmac_sha1 ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_crypto_hash_md4()

static BOOL test_crypto_hash_md4 ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_crypto_hash_md5()

static BOOL test_crypto_hash_md5 ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_crypto_hash_sha1()

static BOOL test_crypto_hash_sha1 ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestCryptoHash()

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

Variable Documentation

◆ TEST_HMAC_MD5_DATA

const char TEST_HMAC_MD5_DATA[] = "Hi There"
static

◆ TEST_HMAC_MD5_HASH

const BYTE TEST_HMAC_MD5_HASH[]
static
Initial value:
=
"\x92\x94\x72\x7a\x36\x38\xbb\x1c\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d"

◆ TEST_HMAC_MD5_KEY

const BYTE TEST_HMAC_MD5_KEY[]
static
Initial value:
=
"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"

◆ TEST_HMAC_SHA1_DATA

const char TEST_HMAC_SHA1_DATA[] = "Hi There"
static

◆ TEST_HMAC_SHA1_HASH

const BYTE TEST_HMAC_SHA1_HASH[]
static
Initial value:
=
"\xb6\x17\x31\x86\x55\x05\x72\x64\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1\x46\xbe\x00"

◆ TEST_HMAC_SHA1_KEY

const BYTE TEST_HMAC_SHA1_KEY[]
static
Initial value:
=
"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"

◆ TEST_MD4_DATA

const char TEST_MD4_DATA[] = "test"
static

◆ TEST_MD4_HASH

const BYTE TEST_MD4_HASH[]
static
Initial value:
=
"\xdb\x34\x6d\x69\x1d\x7a\xcc\x4d\xc2\x62\x5d\xb1\x9f\x9e\x3f\x52"

◆ TEST_MD5_DATA

const char TEST_MD5_DATA[] = "test"
static

◆ TEST_MD5_HASH

const BYTE TEST_MD5_HASH[]
static
Initial value:
=
"\x09\x8f\x6b\xcd\x46\x21\xd3\x73\xca\xde\x4e\x83\x26\x27\xb4\xf6"

◆ TEST_SHA1_DATA

const char TEST_SHA1_DATA[] = "test"
static

◆ TEST_SHA1_HASH

const BYTE TEST_SHA1_HASH[]
static
Initial value:
=
"\xa9\x4a\x8f\xe5\xcc\xb1\x9b\xa6\x1c\x4c\x08\x73\xd3\x91\xe9\x87\x98\x2f\xbb\xd3"