• Home
  • Raw
  • Download

Lines Matching refs:src_str

133     unsigned char src_str[1000];
138 memset( src_str, 0x00, 1000 );
141 strncpy( (char *) src_str, text_src_string, sizeof( src_str ) - 1 );
146 TEST_ASSERT ( 0 == mbedtls_md( md_info, src_str, strlen( (char *) src_str ), output ) );
155 void md_hex( char * text_md_name, data_t * src_str, data_t * hash )
168 TEST_ASSERT ( 0 == mbedtls_md( md_info, src_str->x, src_str->len, output ) );
182 unsigned char src_str[1000];
193 memset( src_str, 0x00, 1000 );
196 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 );
198 len = strlen( (char *) src_str );
208 TEST_ASSERT ( 0 == mbedtls_md_update( &ctx, src_str, halfway ) );
211 TEST_ASSERT ( 0 == mbedtls_md_update( &ctx, src_str + halfway, len - halfway ) );
220 TEST_ASSERT ( 0 == mbedtls_md_update( &ctx_copy, src_str + halfway, len - halfway ) );
233 void md_hex_multi( char * text_md_name, data_t * src_str, data_t * hash )
253 halfway = src_str->len / 2;
257 TEST_ASSERT ( 0 == mbedtls_md_update( &ctx, src_str->x, halfway ) );
260 TEST_ASSERT ( 0 == mbedtls_md_update( &ctx, src_str->x + halfway, src_str->len - halfway) );
269 … TEST_ASSERT ( 0 == mbedtls_md_update( &ctx_copy, src_str->x + halfway, src_str->len - halfway ) );
283 data_t * key_str, data_t * src_str,
298 …TEST_ASSERT ( mbedtls_md_hmac( md_info, key_str->x, key_str->len, src_str->x, src_str->len, output…
307 data_t * src_str, data_t * hash )
325 halfway = src_str->len / 2;
329 TEST_ASSERT ( 0 == mbedtls_md_hmac_update( &ctx, src_str->x, halfway ) );
330 … TEST_ASSERT ( 0 == mbedtls_md_hmac_update( &ctx, src_str->x + halfway, src_str->len - halfway ) );
340 TEST_ASSERT ( 0 == mbedtls_md_hmac_update( &ctx, src_str->x, halfway ) );
341 … TEST_ASSERT ( 0 == mbedtls_md_hmac_update( &ctx, src_str->x + halfway, src_str->len - halfway ) );