Home
last modified time | relevance | path

Searched refs:kZeroCopyFrameLengthFieldSize (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_zero_copy_grpc_protector.cc69 if (sb == nullptr || sb->length < kZeroCopyFrameLengthFieldSize) { in read_frame_size()
72 uint8_t frame_size_buffer[kZeroCopyFrameLengthFieldSize]; in read_frame_size()
75 size_t remaining = kZeroCopyFrameLengthFieldSize; in read_frame_size()
100 static_cast<uint32_t>(frame_size + kZeroCopyFrameLengthFieldSize); in read_frame_size()
188 while (protector->protected_sb.length >= kZeroCopyFrameLengthFieldSize) { in alts_zero_copy_grpc_protector_unprotect()
Dalts_iovec_record_protocol.h29 constexpr size_t kZeroCopyFrameLengthFieldSize = 4; variable
32 kZeroCopyFrameLengthFieldSize + kZeroCopyFrameMessageTypeFieldSize;
Dalts_iovec_record_protocol.cc136 header + kZeroCopyFrameLengthFieldSize); in write_frame_header()
153 size_t message_type = load_32_le(header + kZeroCopyFrameLengthFieldSize); in verify_frame_header()
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol_test.cc284 alter_random_byte(var->header_buf, kZeroCopyFrameLengthFieldSize); in integrity_only_corrupted_data()
293 offset = alter_random_byte(var->header_buf + kZeroCopyFrameLengthFieldSize, in integrity_only_corrupted_data()
302 revert_back_alter(var->header_buf + kZeroCopyFrameLengthFieldSize, offset); in integrity_only_corrupted_data()
525 size_t offset = alter_random_byte(header_buf, kZeroCopyFrameLengthFieldSize); in privacy_integrity_corrupted_data()
534 offset = alter_random_byte(header_buf + kZeroCopyFrameLengthFieldSize, in privacy_integrity_corrupted_data()
543 revert_back_alter(header_buf + kZeroCopyFrameLengthFieldSize, offset); in privacy_integrity_corrupted_data()