Lines Matching refs:char
11 void mbedtls_base64_encode( char *src_string, char *dst_string, int dst_buf_size,
14 unsigned char src_str[1000];
15 unsigned char dst_str[1000];
21 strncpy( (char *) src_str, src_string, sizeof(src_str) - 1 );
22 …TEST_ASSERT( mbedtls_base64_encode( dst_str, dst_buf_size, &len, src_str, strlen( (char *) src_str…
25 TEST_ASSERT( strcmp( (char *) dst_str, dst_string ) == 0 );
31 void mbedtls_base64_decode( char *src_string, char *dst_string, int result )
33 unsigned char src_str[1000];
34 unsigned char dst_str[1000];
41 strncpy( (char *) src_str, src_string, sizeof(src_str) - 1 );
42 …res = mbedtls_base64_decode( dst_str, sizeof( dst_str ), &len, src_str, strlen( (char *) src_str )…
46 TEST_ASSERT( strcmp( (char *) dst_str, dst_string ) == 0 );
52 void base64_encode_hex( char *src_hex, char *dst, int dst_buf_size,
55 unsigned char *src = NULL, *res = NULL;
75 void base64_decode_hex( char *src, char *dst_hex, int dst_buf_size,
78 unsigned char *dst = NULL, *res = NULL;
84 TEST_ASSERT( mbedtls_base64_decode( res, dst_buf_size, &len, (unsigned char *) src,
99 void base64_decode_hex_src( char *src_hex, char *dst_ref, int result )
101 unsigned char dst[1000] = { 0 };
102 unsigned char *src;