Home
last modified time | relevance | path

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

/mbedtls-3.4.0/library/
Dccm.c120 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, in mbedtls_ccm_crypt()
138 memset( ctx->ctr, 0, 16); in mbedtls_ccm_clear_state()
225 memset( ctx->ctr, 0, 16); in mbedtls_ccm_starts()
226 ctx->ctr[0] = ctx->q - 1; in mbedtls_ccm_starts()
227 memcpy( ctx->ctr + 1, iv, iv_len ); in mbedtls_ccm_starts()
228 memset( ctx->ctr + 1 + iv_len, 0, ctx->q ); in mbedtls_ccm_starts()
229 ctx->ctr[15] = 1; in mbedtls_ccm_starts()
433 if( ++(ctx->ctr)[15-i] != 0 ) in mbedtls_ccm_update()
473 ctx->ctr[15-i] = 0; in mbedtls_ccm_finish()
Dssl_msg.c574 memcpy( cur, rec->ctr, sizeof( rec->ctr ) ); in ssl_extract_add_data_from_record()
575 cur += sizeof( rec->ctr ); in ssl_extract_add_data_from_record()
611 memcpy(cur, rec->ctr, sizeof(rec->ctr)); in ssl_extract_add_data_from_record()
612 cur += sizeof(rec->ctr); in ssl_extract_add_data_from_record()
955 dynamic_iv = rec->ctr; in mbedtls_ssl_encrypt_buf()
956 dynamic_iv_len = sizeof( rec->ctr ); in mbedtls_ssl_encrypt_buf()
1358 dynamic_iv_len = sizeof( rec->ctr ); in mbedtls_ssl_decrypt_buf()
1377 dynamic_iv = rec->ctr; in mbedtls_ssl_decrypt_buf()
2828 memcpy( &rec.ctr[0], ssl->out_ctr, sizeof( rec.ctr ) ); in mbedtls_ssl_write_record()
3714 memcpy( &rec->ctr[0], buf + rec_hdr_ctr_offset, in ssl_parse_record_header()
[all …]
Dssl_misc.h1195 uint8_t ctr[MBEDTLS_SSL_SEQUENCE_NUMBER_LEN]; /* In TLS: The implicit record sequence number. member
/mbedtls-3.4.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.4.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.4.0/include/mbedtls/
Dccm.h80 unsigned char MBEDTLS_PRIVATE(ctr)[16]; /*!< The counter buffer */
/mbedtls-3.4.0/tests/suites/
Dtest_suite_ssl.function3762 memset( rec.ctr, num_records, sizeof( rec.ctr ) );
3817 TEST_ASSERT( memcmp( rec.ctr, rec_backup.ctr, 8 ) == 0 );
3905 memset( rec.ctr, offset, sizeof( rec.ctr ) );
3985 TEST_ASSERT( memcmp( rec.ctr, rec_backup.ctr, 8 ) == 0 );
4096 memset( rec.ctr, 0, sizeof( rec.ctr ) );
4112 memcpy( add_data, rec.ctr, 8 );
4549 int ctr,
4623 memset( &rec.ctr[0], 0, 8 );
4624 rec.ctr[7] = ctr;