Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 7 of 7) sorted by relevance

/mbedtls-3.5.0/library/
Dccm.c122 if ((ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, in mbedtls_ccm_crypt()
139 memset(ctx->ctr, 0, 16); in mbedtls_ccm_clear_state()
223 memset(ctx->ctr, 0, 16); in mbedtls_ccm_starts()
224 ctx->ctr[0] = ctx->q - 1; in mbedtls_ccm_starts()
225 memcpy(ctx->ctr + 1, iv, iv_len); in mbedtls_ccm_starts()
226 memset(ctx->ctr + 1 + iv_len, 0, ctx->q); in mbedtls_ccm_starts()
227 ctx->ctr[15] = 1; in mbedtls_ccm_starts()
416 if (++(ctx->ctr)[15-i] != 0) { in mbedtls_ccm_update()
455 ctx->ctr[15-i] = 0; in mbedtls_ccm_finish()
Dssl_msg.c578 memcpy(cur, rec->ctr, sizeof(rec->ctr)); in ssl_extract_add_data_from_record()
579 cur += sizeof(rec->ctr); in ssl_extract_add_data_from_record()
612 memcpy(cur, rec->ctr, sizeof(rec->ctr)); in ssl_extract_add_data_from_record()
613 cur += sizeof(rec->ctr); in ssl_extract_add_data_from_record()
947 dynamic_iv = rec->ctr; in mbedtls_ssl_encrypt_buf()
948 dynamic_iv_len = sizeof(rec->ctr); in mbedtls_ssl_encrypt_buf()
1338 dynamic_iv_len = sizeof(rec->ctr); in mbedtls_ssl_decrypt_buf()
1353 dynamic_iv = rec->ctr; in mbedtls_ssl_decrypt_buf()
2748 memcpy(&rec.ctr[0], ssl->out_ctr, sizeof(rec.ctr)); in mbedtls_ssl_write_record()
3616 memcpy(&rec->ctr[0], buf + rec_hdr_ctr_offset, in ssl_parse_record_header()
[all …]
Dssl_misc.h1200 uint8_t ctr[MBEDTLS_SSL_SEQUENCE_NUMBER_LEN]; /* In TLS: The implicit record sequence number. member
/mbedtls-3.5.0/3rdparty/everest/library/
DHacl_Curve25519.c68 uint32_t ctr = i; in Hacl_Bignum_Fproduct_carry_wide_() local
69 uint128_t tctr = tmp[ctr]; in Hacl_Bignum_Fproduct_carry_wide_()
70 uint128_t tctrp1 = tmp[ctr + (uint32_t)1U]; in Hacl_Bignum_Fproduct_carry_wide_()
73 tmp[ctr] = (uint128_t)r0; in Hacl_Bignum_Fproduct_carry_wide_()
74 tmp[ctr + (uint32_t)1U] = tctrp1 + c; in Hacl_Bignum_Fproduct_carry_wide_()
86 uint32_t ctr = (uint32_t)5U - i - (uint32_t)1U; in Hacl_Bignum_Fmul_shift_reduce() local
87 uint64_t z = output[ctr - (uint32_t)1U]; in Hacl_Bignum_Fmul_shift_reduce()
88 output[ctr] = z; in Hacl_Bignum_Fmul_shift_reduce()
376 Hacl_EC_Point_swap_conditional_step(uint64_t *a, uint64_t *b, uint64_t swap1, uint32_t ctr) in Hacl_EC_Point_swap_conditional_step() argument
378 uint32_t i = ctr - (uint32_t)1U; in Hacl_EC_Point_swap_conditional_step()
[all …]
/mbedtls-3.5.0/3rdparty/everest/library/legacy/
DHacl_Curve25519.c76 uint32_t ctr = i; in Hacl_Bignum_Fproduct_carry_wide_() local
77 FStar_UInt128_uint128 tctr = tmp[ctr]; in Hacl_Bignum_Fproduct_carry_wide_()
78 FStar_UInt128_uint128 tctrp1 = tmp[ctr + (uint32_t)1U]; in Hacl_Bignum_Fproduct_carry_wide_()
81 tmp[ctr] = FStar_UInt128_uint64_to_uint128(r0); in Hacl_Bignum_Fproduct_carry_wide_()
82 tmp[ctr + (uint32_t)1U] = FStar_UInt128_add(tctrp1, c); in Hacl_Bignum_Fproduct_carry_wide_()
94 uint32_t ctr = (uint32_t)5U - i - (uint32_t)1U; in Hacl_Bignum_Fmul_shift_reduce() local
95 uint64_t z = output[ctr - (uint32_t)1U]; in Hacl_Bignum_Fmul_shift_reduce()
96 output[ctr] = z; in Hacl_Bignum_Fmul_shift_reduce()
421 Hacl_EC_Point_swap_conditional_step(uint64_t *a, uint64_t *b, uint64_t swap1, uint32_t ctr) in Hacl_EC_Point_swap_conditional_step() argument
423 uint32_t i = ctr - (uint32_t)1U; in Hacl_EC_Point_swap_conditional_step()
[all …]
/mbedtls-3.5.0/include/mbedtls/
Dccm.h79 unsigned char MBEDTLS_PRIVATE(ctr)[16]; /*!< The counter buffer */
/mbedtls-3.5.0/tests/suites/
Dtest_suite_ssl.function1178 memset(rec.ctr, num_records, sizeof(rec.ctr));
1230 TEST_ASSERT(memcmp(rec.ctr, rec_backup.ctr, 8) == 0);
1316 memset(rec.ctr, offset, sizeof(rec.ctr));
1392 TEST_ASSERT(memcmp(rec.ctr, rec_backup.ctr, 8) == 0);
1501 memset(rec.ctr, 0, sizeof(rec.ctr));
1517 memcpy(add_data, rec.ctr, 8);
1954 int ctr,
2030 memset(&rec.ctr[0], 0, 8);
2031 rec.ctr[7] = ctr;