Lines Matching refs:char
8 static const char base64_digits[] =
22 unsigned char low = low_arg, high = high_arg;
28 unsigned char m = mbedtls_ct_uchar_mask_of_range( low, high, c );
46 unsigned char digit = mbedtls_ct_base64_enc_char( value );
57 char *p;
58 signed char expected;
70 signed char actual = mbedtls_ct_base64_dec_value( c );
79 void mbedtls_base64_encode( char * src_string, char * dst_string,
82 unsigned char src_str[1000];
83 unsigned char dst_str[1000];
89 strncpy( (char *) src_str, src_string, sizeof(src_str) - 1 );
90 src_len = strlen( (char *) src_str );
102 TEST_ASSERT( strcmp( (char *) dst_str, dst_string ) == 0 );
108 void mbedtls_base64_decode( char * src_string, char * dst_string, int result )
110 unsigned char src_str[1000];
111 unsigned char dst_str[1000];
118 strncpy( (char *) src_str, src_string, sizeof(src_str) - 1 );
119 …res = mbedtls_base64_decode( dst_str, sizeof( dst_str ), &len, src_str, strlen( (char *) src_str )…
123 TEST_ASSERT( strcmp( (char *) dst_str, dst_string ) == 0 );
129 void base64_encode_hex( data_t * src, char * dst, int dst_buf_size,
132 unsigned char *res = NULL;
157 void base64_decode_hex( char * src, data_t * dst, int dst_buf_size,
160 unsigned char *res = NULL;
165 TEST_ASSERT( mbedtls_base64_decode( res, dst_buf_size, &len, (unsigned char *) src,
179 void base64_decode_hex_src( data_t * src, char * dst_ref, int result )
181 unsigned char dst[1000] = { 0 };