| /mbedtls/library/ |
| A D | debug.c | 150 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, "%04x: ", in mbedtls_debug_print_buf() 155 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " %02x", in mbedtls_debug_print_buf() 162 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " "); in mbedtls_debug_print_buf() 165 mbedtls_snprintf(str + idx, sizeof(str) - idx, " %s\n", txt); in mbedtls_debug_print_buf() 212 mbedtls_snprintf(str + idx, sizeof(str) - idx, "\n"); in mbedtls_debug_print_ec_coord() 219 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " %02x", in mbedtls_debug_print_ec_coord() 225 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " "); in mbedtls_debug_print_ec_coord() 228 mbedtls_snprintf(str + idx, sizeof(str) - idx, "\n"); in mbedtls_debug_print_ec_coord() 271 size_t idx = 0; in mbedtls_debug_print_mpi() local 289 idx = 3; in mbedtls_debug_print_mpi() [all …]
|
| A D | lms.c | 531 unsigned int idx; in mbedtls_lms_private_free() local 535 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_private_free() 536 mbedtls_lmots_private_free(&ctx->ots_private_keys[idx]); in mbedtls_lms_private_free() 541 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_private_free() 542 mbedtls_lmots_public_free(&ctx->ots_public_keys[idx]); in mbedtls_lms_private_free() 561 unsigned int idx = 0; in mbedtls_lms_generate_private_key() local 605 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_generate_private_key() 606 mbedtls_lmots_private_init(&ctx->ots_private_keys[idx]); in mbedtls_lms_generate_private_key() 607 mbedtls_lmots_public_init(&ctx->ots_public_keys[idx]); in mbedtls_lms_generate_private_key() 611 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_generate_private_key() [all …]
|
| A D | camellia.c | 295 int idx; in mbedtls_camellia_setkey_enc() local 309 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc() 374 SHIFT_AND_PLACE(idx, 0); in mbedtls_camellia_setkey_enc() 378 SHIFT_AND_PLACE(idx, 1); in mbedtls_camellia_setkey_enc() 382 SHIFT_AND_PLACE(idx, 2); in mbedtls_camellia_setkey_enc() 386 SHIFT_AND_PLACE(idx, 3); in mbedtls_camellia_setkey_enc() 391 if (transposes[idx][i] != -1) { in mbedtls_camellia_setkey_enc() 392 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc() 407 int idx, ret; in mbedtls_camellia_setkey_dec() local 421 idx = (ctx->nr == 4); in mbedtls_camellia_setkey_dec() [all …]
|
| A D | version_features.c | 816 const char * const *idx = features; in mbedtls_version_check_feature() local 818 if (*idx == NULL) { in mbedtls_version_check_feature() 832 while (*idx != NULL) { in mbedtls_version_check_feature() 833 if (!strcmp(*idx, feature)) { in mbedtls_version_check_feature() 836 idx++; in mbedtls_version_check_feature()
|
| A D | aes.c | 468 #define AES_RT0(idx) RT0[idx] argument 469 #define AES_RT1(idx) ROTL8(RT0[idx]) argument 473 #define AES_FT0(idx) FT0[idx] argument 480 #define AES_RT0(idx) RT0[idx] argument 481 #define AES_RT1(idx) RT1[idx] argument 482 #define AES_RT2(idx) RT2[idx] argument 483 #define AES_RT3(idx) RT3[idx] argument 485 #define AES_FT0(idx) FT0[idx] argument 486 #define AES_FT1(idx) FT1[idx] argument 487 #define AES_FT2(idx) FT2[idx] argument [all …]
|
| A D | entropy.c | 86 int idx, ret = 0; in mbedtls_entropy_add_source() local 94 idx = ctx->source_count; in mbedtls_entropy_add_source() 95 if (idx >= MBEDTLS_ENTROPY_MAX_SOURCES) { in mbedtls_entropy_add_source() 100 ctx->source[idx].f_source = f_source; in mbedtls_entropy_add_source() 101 ctx->source[idx].p_source = p_source; in mbedtls_entropy_add_source() 102 ctx->source[idx].threshold = threshold; in mbedtls_entropy_add_source() 103 ctx->source[idx].strong = strong; in mbedtls_entropy_add_source()
|
| A D | ssl_tls13_generic.c | 181 size_t idx; in ssl_tls13_create_verify_structure() local 193 idx = 64; in ssl_tls13_create_verify_structure() 196 memcpy(verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv)); in ssl_tls13_create_verify_structure() 197 idx += MBEDTLS_SSL_TLS1_3_LBL_LEN(client_cv); in ssl_tls13_create_verify_structure() 199 memcpy(verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv)); in ssl_tls13_create_verify_structure() 200 idx += MBEDTLS_SSL_TLS1_3_LBL_LEN(server_cv); in ssl_tls13_create_verify_structure() 203 verify_buffer[idx++] = 0x0; in ssl_tls13_create_verify_structure() 205 memcpy(verify_buffer + idx, transcript_hash, transcript_hash_len); in ssl_tls13_create_verify_structure() 206 idx += transcript_hash_len; in ssl_tls13_create_verify_structure() 208 *verify_buffer_len = idx; in ssl_tls13_create_verify_structure()
|
| A D | sha3.c | 95 #define ABSORB(ctx, idx, v) do { ctx->state[(idx) >> 3] ^= ((uint64_t) (v)) << (((idx) & 0x7) << 3)… argument 97 #define SQUEEZE(ctx, idx) ((uint8_t) (ctx->state[(idx) >> 3] >> (((idx) & 0x7) << 3))) argument
|
| A D | lmots.c | 86 size_t idx; in lmots_checksum_calculate() local 89 for (idx = 0; idx < MBEDTLS_LMOTS_N_HASH_LEN(params->type); idx++) { in lmots_checksum_calculate() 90 sum += DIGIT_MAX_VALUE - digest[idx]; in lmots_checksum_calculate()
|
| A D | ssl_ticket.c | 159 const unsigned char idx = 1 - ctx->active; in mbedtls_ssl_ticket_rotate() local 160 mbedtls_ssl_ticket_key * const key = ctx->keys + idx; in mbedtls_ssl_ticket_rotate() 200 ctx->active = idx; in mbedtls_ssl_ticket_rotate()
|
| A D | bignum.c | 410 size_t idx = pos % biL; in mbedtls_mpi_set_bit() local 424 X->p[off] &= ~((mbedtls_mpi_uint) 0x01 << idx); in mbedtls_mpi_set_bit() 425 X->p[off] |= (mbedtls_mpi_uint) val << idx; in mbedtls_mpi_set_bit()
|
| A D | ssl_msg.c | 1956 size_t idx; in mbedtls_ssl_decrypt_buf() local 1958 for (idx = start_idx; idx < rec->data_len; idx++) { in mbedtls_ssl_decrypt_buf() 1962 const mbedtls_ct_condition_t a = mbedtls_ct_uint_ge(idx, padding_idx); in mbedtls_ssl_decrypt_buf() 1964 const mbedtls_ct_condition_t b = mbedtls_ct_uint_eq(check[idx], padlen - 1); in mbedtls_ssl_decrypt_buf()
|
| /mbedtls/scripts/data_files/ |
| A D | version_features.fmt | 25 const char * const *idx = features; 27 if (*idx == NULL) { 41 while (*idx != NULL) { 42 if (!strcmp(*idx, feature)) { 45 idx++;
|
| /mbedtls/programs/ssl/ |
| A D | ssl_mail_client.c | 227 size_t i, idx = 0; in write_ssl_and_get_response() local 259 if (idx < 4) { in write_ssl_and_get_response() 260 code[idx++] = data[i]; in write_ssl_and_get_response() 265 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_ssl_and_get_response() 270 idx = 0; in write_ssl_and_get_response() 280 size_t i, idx = 0; in write_and_get_response() local 303 if (idx < 4) { in write_and_get_response() 304 code[idx++] = data[i]; in write_and_get_response() 309 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_and_get_response() 314 idx = 0; in write_and_get_response()
|
| A D | ssl_client2.c | 636 size_t idx = 0; in report_cid_usage() local 660 while (idx < peer_cid_len) { in report_cid_usage() 661 mbedtls_printf("%02x ", peer_cid[idx]); in report_cid_usage() 662 idx++; in report_cid_usage()
|
| A D | ssl_server2.c | 1362 size_t idx = 0; in report_cid_usage() local 1368 while (idx < peer_cid_len) { in report_cid_usage() 1369 mbedtls_printf("%02x ", peer_cid[idx]); in report_cid_usage() 1370 idx++; in report_cid_usage()
|
| /mbedtls/tests/scripts/ |
| A D | check_test_cases.py | 30 def idx(self): member in ScriptOutputError 116 for idx, line in enumerate(listed.splitlines()): 123 raise ScriptOutputError(script_name, idx, line.decode("utf-8")) 127 idx, 232 results.error(e.script_name, e.idx,
|
| A D | audit-validity-dates.py | 295 for idx, m in enumerate(re.finditer(X509Parser.PEM_REGEX, data, flags=re.S), 1): 299 result.locations.append("{}#{}".format(filename, idx)) 357 for idx, test_arg in enumerate(test_args): 368 idx + 1))
|
| /mbedtls/tests/suites/ |
| A 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);
|
| A D | test_suite_ctr_drbg.function | 63 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len], 79 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len],
|