Classes | Typedefs | Functions | Variables
alts_grpc_integrity_only_record_protocol.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h"
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h"
#include "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h"
Include dependency graph for alts_grpc_integrity_only_record_protocol.cc:

Go to the source code of this file.

Classes

struct  alts_grpc_integrity_only_record_protocol
 

Typedefs

typedef struct alts_grpc_integrity_only_record_protocol alts_grpc_integrity_only_record_protocol
 

Functions

static void alts_grpc_integrity_only_destruct (alts_grpc_record_protocol *rp)
 
static tsi_result alts_grpc_integrity_only_extra_copy_protect (alts_grpc_record_protocol *rp, grpc_slice_buffer *unprotected_slices, grpc_slice_buffer *protected_slices)
 
static tsi_result alts_grpc_integrity_only_protect (alts_grpc_record_protocol *rp, grpc_slice_buffer *unprotected_slices, grpc_slice_buffer *protected_slices)
 
tsi_result alts_grpc_integrity_only_record_protocol_create (gsec_aead_crypter *crypter, size_t overflow_size, bool is_client, bool is_protect, bool enable_extra_copy, alts_grpc_record_protocol **rp)
 
static tsi_result alts_grpc_integrity_only_unprotect (alts_grpc_record_protocol *rp, grpc_slice_buffer *protected_slices, grpc_slice_buffer *unprotected_slices)
 

Variables

static const alts_grpc_record_protocol_vtable alts_grpc_integrity_only_record_protocol_vtable
 

Typedef Documentation

◆ alts_grpc_integrity_only_record_protocol

Function Documentation

◆ alts_grpc_integrity_only_destruct()

static void alts_grpc_integrity_only_destruct ( alts_grpc_record_protocol rp)
static

Definition at line 183 of file alts_grpc_integrity_only_record_protocol.cc.

◆ alts_grpc_integrity_only_extra_copy_protect()

static tsi_result alts_grpc_integrity_only_extra_copy_protect ( alts_grpc_record_protocol rp,
grpc_slice_buffer unprotected_slices,
grpc_slice_buffer protected_slices 
)
static

Definition at line 42 of file alts_grpc_integrity_only_record_protocol.cc.

◆ alts_grpc_integrity_only_protect()

static tsi_result alts_grpc_integrity_only_protect ( alts_grpc_record_protocol rp,
grpc_slice_buffer unprotected_slices,
grpc_slice_buffer protected_slices 
)
static

Definition at line 78 of file alts_grpc_integrity_only_record_protocol.cc.

◆ alts_grpc_integrity_only_record_protocol_create()

tsi_result alts_grpc_integrity_only_record_protocol_create ( gsec_aead_crypter crypter,
size_t  overflow_size,
bool  is_client,
bool  is_protect,
bool  enable_extra_copy,
alts_grpc_record_protocol **  rp 
)

This method creates an integrity-only alts_grpc_record_protocol instance, given a gsec_aead_crypter instance and a flag indicating if the created instance will be used at the client or server side. The ownership of gsec_aead_crypter instance is transferred to this new object.

  • crypter: a gsec_aead_crypter instance used to perform AEAD decryption.
  • overflow_size: overflow size of counter in bytes.
  • is_client: a flag indicating if the alts_grpc_record_protocol instance will be used at the client or server side.
  • is_protect: a flag indicating if the alts_grpc_record_protocol instance will be used for protect or unprotect.

enable_extra_copy: a flag indicating if the instance uses one-copy instead of zero-copy in the protect operation.

This method returns TSI_OK in case of success or a specific error code in case of failure.

Definition at line 198 of file alts_grpc_integrity_only_record_protocol.cc.

◆ alts_grpc_integrity_only_unprotect()

static tsi_result alts_grpc_integrity_only_unprotect ( alts_grpc_record_protocol rp,
grpc_slice_buffer protected_slices,
grpc_slice_buffer unprotected_slices 
)
static

Definition at line 120 of file alts_grpc_integrity_only_record_protocol.cc.

Variable Documentation

◆ alts_grpc_integrity_only_record_protocol_vtable

const alts_grpc_record_protocol_vtable alts_grpc_integrity_only_record_protocol_vtable
static
alts_grpc_integrity_only_destruct
static void alts_grpc_integrity_only_destruct(alts_grpc_record_protocol *rp)
Definition: alts_grpc_integrity_only_record_protocol.cc:183
alts_grpc_integrity_only_unprotect
static tsi_result alts_grpc_integrity_only_unprotect(alts_grpc_record_protocol *rp, grpc_slice_buffer *protected_slices, grpc_slice_buffer *unprotected_slices)
Definition: alts_grpc_integrity_only_record_protocol.cc:120
alts_grpc_integrity_only_protect
static tsi_result alts_grpc_integrity_only_protect(alts_grpc_record_protocol *rp, grpc_slice_buffer *unprotected_slices, grpc_slice_buffer *protected_slices)
Definition: alts_grpc_integrity_only_record_protocol.cc:78


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02