Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 13 of 13) sorted by relevance

/mbedtls-development/library/
A Ddebug.c141 size_t i, idx = 0; in mbedtls_debug_print_buf() local
156 idx = 0; in mbedtls_debug_print_buf()
174 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, "%04x: ", in mbedtls_debug_print_buf()
179 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %02x", in mbedtls_debug_print_buf()
187 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " " ); in mbedtls_debug_print_buf()
189 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf()
224 size_t idx = 0; in mbedtls_debug_print_mpi() local
244 idx = 3; in mbedtls_debug_print_mpi()
256 idx += 3; in mbedtls_debug_print_mpi()
267 if( idx != 0 ) in mbedtls_debug_print_mpi()
[all …]
A Dcamellia.c320 int idx; in mbedtls_camellia_setkey_enc() local
338 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc()
397 SHIFT_AND_PLACE( idx, 0 ); in mbedtls_camellia_setkey_enc()
401 SHIFT_AND_PLACE( idx, 1 ); in mbedtls_camellia_setkey_enc()
405 SHIFT_AND_PLACE( idx, 2 ); in mbedtls_camellia_setkey_enc()
409 SHIFT_AND_PLACE( idx, 3 ); in mbedtls_camellia_setkey_enc()
414 if( transposes[idx][i] != -1 ) { in mbedtls_camellia_setkey_enc()
415 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
429 int idx, ret; in mbedtls_camellia_setkey_dec() local
444 idx = ( ctx->nr == 4 ); in mbedtls_camellia_setkey_dec()
[all …]
A Dssl_tls13_generic.c261 size_t idx; in ssl_tls13_create_verify_structure() local
273 idx = 64; in ssl_tls13_create_verify_structure()
277 memcpy( verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN( client_cv ) ); in ssl_tls13_create_verify_structure()
278 idx += MBEDTLS_SSL_TLS1_3_LBL_LEN( client_cv ); in ssl_tls13_create_verify_structure()
282 memcpy( verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN( server_cv ) ); in ssl_tls13_create_verify_structure()
283 idx += MBEDTLS_SSL_TLS1_3_LBL_LEN( server_cv ); in ssl_tls13_create_verify_structure()
286 verify_buffer[idx++] = 0x0; in ssl_tls13_create_verify_structure()
288 memcpy( verify_buffer + idx, transcript_hash, transcript_hash_len ); in ssl_tls13_create_verify_structure()
289 idx += transcript_hash_len; in ssl_tls13_create_verify_structure()
291 *verify_buffer_len = idx; in ssl_tls13_create_verify_structure()
A Daes.c466 #define AES_RT0(idx) RT0[idx] argument
467 #define AES_RT1(idx) ROTL8( RT0[idx] ) argument
471 #define AES_FT0(idx) FT0[idx] argument
478 #define AES_RT0(idx) RT0[idx] argument
479 #define AES_RT1(idx) RT1[idx] argument
480 #define AES_RT2(idx) RT2[idx] argument
481 #define AES_RT3(idx) RT3[idx] argument
483 #define AES_FT0(idx) FT0[idx] argument
484 #define AES_FT1(idx) FT1[idx] argument
485 #define AES_FT2(idx) FT2[idx] argument
[all …]
A Dentropy.c117 int idx, ret = 0; in mbedtls_entropy_add_source() local
124 idx = ctx->source_count; in mbedtls_entropy_add_source()
125 if( idx >= MBEDTLS_ENTROPY_MAX_SOURCES ) in mbedtls_entropy_add_source()
131 ctx->source[idx].f_source = f_source; in mbedtls_entropy_add_source()
132 ctx->source[idx].p_source = p_source; in mbedtls_entropy_add_source()
133 ctx->source[idx].threshold = threshold; in mbedtls_entropy_add_source()
134 ctx->source[idx].strong = strong; in mbedtls_entropy_add_source()
A Dcmac.c155 size_t idx; in cmac_xor_block() local
157 for( idx = 0; idx < block_size; idx++ ) in cmac_xor_block()
158 output[ idx ] = input1[ idx ] ^ input2[ idx ]; in cmac_xor_block()
A Dbignum.c470 size_t idx = pos % biL; in mbedtls_mpi_set_bit() local
484 X->p[off] &= ~( (mbedtls_mpi_uint) 0x01 << idx ); in mbedtls_mpi_set_bit()
485 X->p[off] |= (mbedtls_mpi_uint) val << idx; in mbedtls_mpi_set_bit()
2281 static int mpi_select( mbedtls_mpi *R, const mbedtls_mpi *T, size_t T_size, size_t idx ) in mpi_select() argument
2288 (unsigned char) mbedtls_mpi_cf_bool_eq( i, idx ) ) ); in mpi_select()
A Dssl_msg.c1570 size_t idx; in mbedtls_ssl_decrypt_buf() local
1572 for( idx = start_idx; idx < rec->data_len; idx++ ) in mbedtls_ssl_decrypt_buf()
1577 const size_t mask = mbedtls_ssl_cf_mask_ge( idx, padding_idx ); in mbedtls_ssl_decrypt_buf()
1578 const size_t equal = mbedtls_ssl_cf_bool_eq( check[idx], in mbedtls_ssl_decrypt_buf()
/mbedtls-development/scripts/data_files/
A Dversion_features.fmt37 const char * const *idx = features;
39 if( *idx == NULL )
45 while( *idx != NULL )
47 if( !strcmp( *idx, feature ) )
49 idx++;
/mbedtls-development/programs/ssl/
A Dssl_mail_client.c255 size_t i, idx = 0; in write_ssl_and_get_response() local
291 if( idx < 4 ) in write_ssl_and_get_response()
292 code[ idx++ ] = data[i]; in write_ssl_and_get_response()
296 if( idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ' ) in write_ssl_and_get_response()
302 idx = 0; in write_ssl_and_get_response()
313 size_t i, idx = 0; in write_and_get_response() local
341 if( idx < 4 ) in write_and_get_response()
342 code[ idx++ ] = data[i]; in write_and_get_response()
346 if( idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ' ) in write_and_get_response()
352 idx = 0; in write_and_get_response()
A Dssl_client2.c607 size_t idx=0; in report_cid_usage() local
633 while( idx < peer_cid_len ) in report_cid_usage()
635 mbedtls_printf( "%02x ", peer_cid[ idx ] ); in report_cid_usage()
636 idx++; in report_cid_usage()
A Dssl_server2.c1263 size_t idx=0; in report_cid_usage() local
1269 while( idx < peer_cid_len ) in report_cid_usage()
1271 mbedtls_printf( "%02x ", peer_cid[ idx ] ); in report_cid_usage()
1272 idx++; in report_cid_usage()
/mbedtls-development/tests/suites/
A Dtest_suite_ctr_drbg.function60 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len],
77 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len],

Completed in 39 milliseconds