/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/rust/crates/grpcio-sys/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,
|
/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,
|
/external/tensorflow/tensorflow/core/kernels/ |
D | stateless_random_ops_v2.h | 33 auto counter_size = GetCounterSize(alg); in CheckKeyCounterShape() local 35 counter_shape.dim_size(0) >= counter_size)) { in CheckKeyCounterShape() 37 "counter must be a vector with length at least ", counter_size, in CheckKeyCounterShape()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | decompose_resource_ops.cc | 140 int counter_size = tensorflow::GetCounterSize(alg); in matchAndRewrite() local 141 int state_size = counter_size + tensorflow::RNG_KEY_SIZE; in matchAndRewrite() 158 Value key = unpacked.getResult(counter_size); in matchAndRewrite() 161 for (int i = 0; i < counter_size; ++i) { in matchAndRewrite() 177 for (int i = 0; i < counter_size; ++i) { in matchAndRewrite() 194 int pad = tensorflow::RNG_MAX_COUNTER_SIZE - counter_size; in matchAndRewrite()
|
/external/tensorflow/tensorflow/python/ops/ |
D | stateful_random_ops.py | 636 counter_size = _get_counter_size(self.algorithm) 637 counter = array_ops.bitcast(counter_key[:counter_size], dtypes.uint64) 638 key = array_ops.bitcast(counter_key[counter_size:counter_size + 1],
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | stateful_random_ops.cc | 448 auto counter_size = GetCounterSize(alg); in Compile() local 450 if (RNG_MAX_COUNTER_SIZE > counter_size) { in Compile() 455 output = PadRight(output, RNG_MAX_COUNTER_SIZE - counter_size); in Compile()
|
/external/mesa3d/src/intel/perf/ |
D | gen_perf_query.c | 1444 size_t counter_size = gen_perf_query_counter_get_size(counter); in get_oa_counter_data() local 1446 if (counter_size) { in get_oa_counter_data() 1465 if (counter->offset + counter_size > written) in get_oa_counter_data() 1466 written = counter->offset + counter_size; in get_oa_counter_data()
|