Home
last modified time | relevance | path

Searched refs:counter_size (Results 1 – 6 of 6) sorted by relevance

/third_party/grpc/test/core/tsi/alts/frame_protector/
Dalts_counter_test.cc35 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 …]
/third_party/grpc/src/core/tsi/alts/frame_protector/
Dalts_counter.cc34 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()
Dalts_record_protocol_crypter_common.cc96 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()
Dalts_counter.h53 grpc_status_code alts_counter_create(bool is_client, size_t counter_size,
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_printf.c63 const unsigned counter_size = 4; in lower_printf_instr() local
78 buffer_size - args_size - fmt_str_id_size - counter_size; in lower_printf_instr()
/third_party/mesa3d/src/intel/perf/
Dintel_perf_query.c1497 size_t counter_size = intel_perf_query_counter_get_size(counter); in get_oa_counter_data() local
1499 if (counter_size) { in get_oa_counter_data()
1518 if (counter->offset + counter_size > written) in get_oa_counter_data()
1519 written = counter->offset + counter_size; in get_oa_counter_data()