Searched refs:counter_size (Results 1 – 4 of 4) sorted by relevance
/external/grpc-grpc/test/core/tsi/alts/frame_protector/ |
D | alts_counter_test.cc | 35 static void alts_counter_test_input_sanity_check(size_t counter_size, in alts_counter_test_input_sanity_check() argument 50 status = alts_counter_create(true, counter_size, 0, &ctr, &error_details); in alts_counter_test_input_sanity_check() 57 status = alts_counter_create(true, counter_size, overflow_size, nullptr, in alts_counter_test_input_sanity_check() 64 status = alts_counter_create(true, counter_size, overflow_size, &ctr, in alts_counter_test_input_sanity_check() 86 size_t counter_size, in alts_counter_test_overflow_full_range() argument 91 is_client, counter_size, overflow_size, &ctr, &error_details); in alts_counter_test_overflow_full_range() 94 static_cast<unsigned char*>(gpr_zalloc(counter_size)); in alts_counter_test_overflow_full_range() 96 expected[counter_size - 1] = 0x80; in alts_counter_test_overflow_full_range() 100 counter_size) == is_client); in alts_counter_test_overflow_full_range() 101 GPR_ASSERT(memcmp(alts_counter_get_counter(ctr), expected, counter_size) == in alts_counter_test_overflow_full_range() [all …]
|
/external/grpc-grpc/src/core/tsi/alts/frame_protector/ |
D | alts_counter.cc | 34 grpc_status_code alts_counter_create(bool is_client, size_t counter_size, in alts_counter_create() argument 39 if (counter_size == 0) { in alts_counter_create() 44 if (overflow_size == 0 || overflow_size >= counter_size) { in alts_counter_create() 56 (*crypter_counter)->size = counter_size; in alts_counter_create() 59 static_cast<unsigned char*>(gpr_zalloc(counter_size)); in alts_counter_create() 61 ((*crypter_counter)->counter)[counter_size - 1] = 0x80; in alts_counter_create()
|
D | alts_record_protocol_crypter_common.cc | 96 size_t counter_size = 0; in alts_crypter_create_common() local 98 gsec_aead_crypter_nonce_length(crypter, &counter_size, error_details); in alts_crypter_create_common() 103 status = alts_counter_create(is_client, counter_size, overflow_size, in alts_crypter_create_common()
|
D | alts_counter.h | 53 grpc_status_code alts_counter_create(bool is_client, size_t counter_size,
|