#include <grpc/support/port_platform.h>
#include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.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"
Go to the source code of this file.
Functions | |
static tsi_result | alts_grpc_privacy_integrity_protect (alts_grpc_record_protocol *rp, grpc_slice_buffer *unprotected_slices, grpc_slice_buffer *protected_slices) |
tsi_result | alts_grpc_privacy_integrity_record_protocol_create (gsec_aead_crypter *crypter, size_t overflow_size, bool is_client, bool is_protect, alts_grpc_record_protocol **rp) |
static tsi_result | alts_grpc_privacy_integrity_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_privacy_integrity_record_protocol_vtable |
|
static |
Definition at line 35 of file alts_grpc_privacy_integrity_record_protocol.cc.
tsi_result alts_grpc_privacy_integrity_record_protocol_create | ( | gsec_aead_crypter * | crypter, |
size_t | overflow_size, | ||
bool | is_client, | ||
bool | is_protect, | ||
alts_grpc_record_protocol ** | rp | ||
) |
This method creates a privacy-integrity 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.
This method returns TSI_OK in case of success or a specific error code in case of failure.
Definition at line 123 of file alts_grpc_privacy_integrity_record_protocol.cc.
|
static |
Definition at line 72 of file alts_grpc_privacy_integrity_record_protocol.cc.
|
static |
Definition at line 119 of file alts_grpc_privacy_integrity_record_protocol.cc.