/mbedtls-3.5.0/library/ |
D | debug.c | 125 size_t i, idx = 0; in mbedtls_debug_print_buf() local 134 mbedtls_snprintf(str + idx, sizeof(str) - idx, "dumping '%s' (%u bytes)\n", in mbedtls_debug_print_buf() 139 idx = 0; in mbedtls_debug_print_buf() 148 mbedtls_snprintf(str + idx, sizeof(str) - idx, " %s\n", txt); in mbedtls_debug_print_buf() 151 idx = 0; in mbedtls_debug_print_buf() 155 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, "%04x: ", in mbedtls_debug_print_buf() 160 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " %02x", in mbedtls_debug_print_buf() 167 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " "); in mbedtls_debug_print_buf() 170 mbedtls_snprintf(str + idx, sizeof(str) - idx, " %s\n", txt); in mbedtls_debug_print_buf() 204 size_t idx = 0; in mbedtls_debug_print_mpi() local [all …]
|
D | lms.c | 548 unsigned int idx; in mbedtls_lms_private_free() local 552 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_private_free() 553 mbedtls_lmots_private_free(&ctx->ots_private_keys[idx]); in mbedtls_lms_private_free() 558 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_private_free() 559 mbedtls_lmots_public_free(&ctx->ots_public_keys[idx]); in mbedtls_lms_private_free() 578 unsigned int idx = 0; in mbedtls_lms_generate_private_key() local 622 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_generate_private_key() 623 mbedtls_lmots_private_init(&ctx->ots_private_keys[idx]); in mbedtls_lms_generate_private_key() 624 mbedtls_lmots_public_init(&ctx->ots_public_keys[idx]); in mbedtls_lms_generate_private_key() 628 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_generate_private_key() [all …]
|
D | lmots.c | 81 size_t idx; in mbedtls_lms_unsigned_int_to_network_bytes() local 83 for (idx = 0; idx < len; idx++) { in mbedtls_lms_unsigned_int_to_network_bytes() 84 bytes[idx] = (val >> ((len - 1 - idx) * 8)) & 0xFF; in mbedtls_lms_unsigned_int_to_network_bytes() 91 size_t idx; in mbedtls_lms_network_bytes_to_unsigned_int() local 94 for (idx = 0; idx < len; idx++) { in mbedtls_lms_network_bytes_to_unsigned_int() 95 val |= ((unsigned int) bytes[idx]) << (8 * (len - 1 - idx)); in mbedtls_lms_network_bytes_to_unsigned_int() 115 size_t idx; in lmots_checksum_calculate() local 118 for (idx = 0; idx < MBEDTLS_LMOTS_N_HASH_LEN(params->type); idx++) { in lmots_checksum_calculate() 119 sum += DIGIT_MAX_VALUE - digest[idx]; in lmots_checksum_calculate()
|
D | camellia.c | 307 int idx; in mbedtls_camellia_setkey_enc() local 321 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc() 323 case 256: ctx->nr = 4; idx = 1; break; in mbedtls_camellia_setkey_enc() 386 SHIFT_AND_PLACE(idx, 0); in mbedtls_camellia_setkey_enc() 390 SHIFT_AND_PLACE(idx, 1); in mbedtls_camellia_setkey_enc() 394 SHIFT_AND_PLACE(idx, 2); in mbedtls_camellia_setkey_enc() 398 SHIFT_AND_PLACE(idx, 3); in mbedtls_camellia_setkey_enc() 403 if (transposes[idx][i] != -1) { in mbedtls_camellia_setkey_enc() 404 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc() 418 int idx, ret; in mbedtls_camellia_setkey_dec() local [all …]
|
D | version_features.c | 789 const char * const *idx = features; in mbedtls_version_check_feature() local 791 if (*idx == NULL) { in mbedtls_version_check_feature() 799 while (*idx != NULL) { in mbedtls_version_check_feature() 800 if (!strcmp(*idx, feature)) { in mbedtls_version_check_feature() 803 idx++; in mbedtls_version_check_feature()
|
D | aes.c | 451 #define AES_RT0(idx) RT0[idx] argument 452 #define AES_RT1(idx) ROTL8(RT0[idx]) argument 453 #define AES_RT2(idx) ROTL16(RT0[idx]) argument 454 #define AES_RT3(idx) ROTL24(RT0[idx]) argument 456 #define AES_FT0(idx) FT0[idx] argument 457 #define AES_FT1(idx) ROTL8(FT0[idx]) argument 458 #define AES_FT2(idx) ROTL16(FT0[idx]) argument 459 #define AES_FT3(idx) ROTL24(FT0[idx]) argument 463 #define AES_RT0(idx) RT0[idx] argument 464 #define AES_RT1(idx) RT1[idx] argument [all …]
|
D | entropy.c | 109 int idx, ret = 0; in mbedtls_entropy_add_source() local 117 idx = ctx->source_count; in mbedtls_entropy_add_source() 118 if (idx >= MBEDTLS_ENTROPY_MAX_SOURCES) { in mbedtls_entropy_add_source() 123 ctx->source[idx].f_source = f_source; in mbedtls_entropy_add_source() 124 ctx->source[idx].p_source = p_source; in mbedtls_entropy_add_source() 125 ctx->source[idx].threshold = threshold; in mbedtls_entropy_add_source() 126 ctx->source[idx].strong = strong; in mbedtls_entropy_add_source()
|
D | ssl_tls13_generic.c | 130 size_t idx; in ssl_tls13_create_verify_structure() local 142 idx = 64; in ssl_tls13_create_verify_structure() 145 memcpy(verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv)); in ssl_tls13_create_verify_structure() 146 idx += MBEDTLS_SSL_TLS1_3_LBL_LEN(client_cv); in ssl_tls13_create_verify_structure() 148 memcpy(verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv)); in ssl_tls13_create_verify_structure() 149 idx += MBEDTLS_SSL_TLS1_3_LBL_LEN(server_cv); in ssl_tls13_create_verify_structure() 152 verify_buffer[idx++] = 0x0; in ssl_tls13_create_verify_structure() 154 memcpy(verify_buffer + idx, transcript_hash, transcript_hash_len); in ssl_tls13_create_verify_structure() 155 idx += transcript_hash_len; in ssl_tls13_create_verify_structure() 157 *verify_buffer_len = idx; in ssl_tls13_create_verify_structure()
|
D | ssl_ticket.c | 160 const unsigned char idx = 1 - ctx->active; in mbedtls_ssl_ticket_rotate() local 161 mbedtls_ssl_ticket_key * const key = ctx->keys + idx; in mbedtls_ssl_ticket_rotate() 201 ctx->active = idx; in mbedtls_ssl_ticket_rotate()
|
D | bignum.c | 305 size_t idx = pos % biL; in mbedtls_mpi_set_bit() local 320 X->p[off] &= ~((mbedtls_mpi_uint) 0x01 << idx); in mbedtls_mpi_set_bit() 321 X->p[off] |= (mbedtls_mpi_uint) val << idx; in mbedtls_mpi_set_bit() 1634 static int mpi_select(mbedtls_mpi *R, const mbedtls_mpi *T, size_t T_size, size_t idx) in mpi_select() argument 1641 idx))); in mpi_select()
|
D | ssl_msg.c | 1731 size_t idx; in mbedtls_ssl_decrypt_buf() local 1733 for (idx = start_idx; idx < rec->data_len; idx++) { in mbedtls_ssl_decrypt_buf() 1737 const size_t mask = mbedtls_ct_size_mask_ge(idx, padding_idx); in mbedtls_ssl_decrypt_buf() 1738 const size_t equal = mbedtls_ct_size_bool_eq(check[idx], in mbedtls_ssl_decrypt_buf()
|
/mbedtls-3.5.0/scripts/data_files/ |
D | version_features.fmt | 37 const char * const *idx = features; 39 if (*idx == NULL) { 47 while (*idx != NULL) { 48 if (!strcmp(*idx, feature)) { 51 idx++;
|
/mbedtls-3.5.0/programs/ssl/ |
D | ssl_mail_client.c | 239 size_t i, idx = 0; in write_ssl_and_get_response() local 271 if (idx < 4) { in write_ssl_and_get_response() 272 code[idx++] = data[i]; in write_ssl_and_get_response() 277 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_ssl_and_get_response() 282 idx = 0; in write_ssl_and_get_response() 292 size_t i, idx = 0; in write_and_get_response() local 315 if (idx < 4) { in write_and_get_response() 316 code[idx++] = data[i]; in write_and_get_response() 321 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_and_get_response() 326 idx = 0; in write_and_get_response()
|
D | ssl_client2.c | 647 size_t idx = 0; in report_cid_usage() local 671 while (idx < peer_cid_len) { in report_cid_usage() 672 mbedtls_printf("%02x ", peer_cid[idx]); in report_cid_usage() 673 idx++; in report_cid_usage()
|
D | ssl_server2.c | 1364 size_t idx = 0; in report_cid_usage() local 1370 while (idx < peer_cid_len) { in report_cid_usage() 1371 mbedtls_printf("%02x ", peer_cid[idx]); in report_cid_usage() 1372 idx++; in report_cid_usage()
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_lmots.function | 8 size_t idx; 10 for (idx = MBEDTLS_LMOTS_SIG_SIGNATURE_OFFSET(MBEDTLS_LMOTS_SHA256_N32_W8); 11 idx < MBEDTLS_LMOTS_SIG_LEN(MBEDTLS_LMOTS_SHA256_N32_W8); 12 idx++) { 13 TEST_EQUAL(sig[idx], 0x7E);
|
D | test_suite_ctr_drbg.function | 60 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len], 76 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len],
|