19 #ifndef GRPC_CORE_TSI_ALTS_ZERO_COPY_FRAME_PROTECTOR_ALTS_GRPC_RECORD_PROTOCOL_COMMON_H 20 #define GRPC_CORE_TSI_ALTS_ZERO_COPY_FRAME_PROTECTOR_ALTS_GRPC_RECORD_PROTOCOL_COMMON_H 95 size_t overflow_size,
bool is_client,
96 bool is_integrity_only,
const alts_grpc_record_protocol_vtable * vtable
Definition: alts_grpc_record_protocol_common.h:49
Represents an expandable array of slices, to be interpreted as a single item.
Definition: slice.h:78
iovec_t * iovec_buf
Definition: alts_grpc_record_protocol_common.h:55
grpc_slice_buffer header_sb
Definition: alts_grpc_record_protocol_common.h:51
Definition: alts_iovec_record_protocol.cc:31
unsigned char * header_buf
Definition: alts_grpc_record_protocol_common.h:52
void alts_grpc_record_protocol_copy_slice_buffer(const grpc_slice_buffer *src, unsigned char *dst)
Copies bytes from slice buffer to destination buffer.
Definition: alts_grpc_record_protocol_common.cc:60
tsi_result
Definition: transport_security_interface.h:31
this file contains alts_grpc_record_protocol internals and internal-only helper functions.
Definition: alts_grpc_record_protocol_common.h:34
size_t tag_length
Definition: alts_grpc_record_protocol_common.h:54
void alts_grpc_record_protocol_convert_slice_buffer_to_iovec(alts_grpc_record_protocol *rp, const grpc_slice_buffer *sb)
Converts the slices of input sb into iovec_t's and puts the result into rp->iovec_buf.
Definition: alts_grpc_record_protocol_common.cc:50
Definition: alts_grpc_record_protocol_common.h:48
size_t header_length
Definition: alts_grpc_record_protocol_common.h:53
iovec_t alts_grpc_record_protocol_get_header_iovec(alts_grpc_record_protocol *rp)
This method returns an iovec object pointing to the frame header stored in rp->header_sb.
Definition: alts_grpc_record_protocol_common.cc:70
alts_iovec_record_protocol * iovec_rp
Definition: alts_grpc_record_protocol_common.h:50
tsi_result alts_grpc_record_protocol_init(alts_grpc_record_protocol *rp, gsec_aead_crypter *crypter, size_t overflow_size, bool is_client, bool is_integrity_only, bool is_protect)
Initializes an alts_grpc_record_protocol object, given a gsec_aead_crypter instance, the overflow size of the counter in bytes, a flag indicating if the object is used for client or server side, a flag indicating if it is used for integrity-only or privacy-integrity mode, and a flag indicating if it is for protect or unprotect.
Definition: alts_grpc_record_protocol_common.cc:88
size_t iovec_buf_length
Definition: alts_grpc_record_protocol_common.h:56