GRPC Core
18.0.0
|
#include <grpc/support/port_platform.h>
#include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h"
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <string.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"
Data Structures | |
struct | alts_grpc_integrity_only_record_protocol |
Typedefs | |
typedef struct alts_grpc_integrity_only_record_protocol | alts_grpc_integrity_only_record_protocol |
Functions | |
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. More... | |
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.
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.