Functions | Variables
alts_unseal_privacy_integrity_crypter.cc File Reference
#include <grpc/support/port_platform.h>
#include <grpc/support/alloc.h>
#include "src/core/tsi/alts/frame_protector/alts_counter.h"
#include "src/core/tsi/alts/frame_protector/alts_crypter.h"
#include "src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.h"
Include dependency graph for alts_unseal_privacy_integrity_crypter.cc:

Go to the source code of this file.

Functions

grpc_status_code alts_unseal_crypter_create (gsec_aead_crypter *gc, bool is_client, size_t overflow_size, alts_crypter **crypter, char **error_details)
 
static grpc_status_code alts_unseal_crypter_process_in_place (alts_crypter *c, unsigned char *data, size_t data_allocated_size, size_t data_size, size_t *output_size, char **error_details)
 
static void maybe_copy_error_msg (const char *src, char **dst)
 
static grpc_status_code unseal_check (alts_crypter *c, const unsigned char *data, size_t, size_t data_size, size_t *output_size, char **error_details)
 

Variables

static const alts_crypter_vtable vtable
 

Function Documentation

◆ alts_unseal_crypter_create()

grpc_status_code alts_unseal_crypter_create ( gsec_aead_crypter gc,
bool  is_client,
size_t  overflow_size,
alts_crypter **  crypter,
char **  error_details 
)

This method creates an alts_crypter instance used to perform an unseal operation, given a gsec_aead_crypter instance and a flag indicating if the created instance will be used at the client or server side. It takes ownership of gsec_aead_crypter instance.

  • gc: a gsec_aead_crypter instance used to perform AEAD decryption.
  • is_client: a flag indicating if the alts_crypter instance will be used at the client (is_client = true) or server (is_client = false) side.
  • overflow_size: overflow size of counter in bytes.
  • crypter: an alts_crypter instance to be returned from the method.
  • error_details: a buffer containing an error message if the method does not function correctly. It is legal to pass nullptr into error_details, and otherwise, the parameter should be freed with gpr_free.

On success of creation, the method returns GRPC_STATUS_OK. Otherwise, it returns an error status code along with its details specified in error_details (if error_details is not nullptr).

Definition at line 85 of file alts_unseal_privacy_integrity_crypter.cc.

◆ alts_unseal_crypter_process_in_place()

static grpc_status_code alts_unseal_crypter_process_in_place ( alts_crypter c,
unsigned char *  data,
size_t  data_allocated_size,
size_t  data_size,
size_t *  output_size,
char **  error_details 
)
static

Definition at line 57 of file alts_unseal_privacy_integrity_crypter.cc.

◆ maybe_copy_error_msg()

static void maybe_copy_error_msg ( const char *  src,
char **  dst 
)
static

Definition at line 27 of file alts_unseal_privacy_integrity_crypter.cc.

◆ unseal_check()

static grpc_status_code unseal_check ( alts_crypter c,
const unsigned char *  data,
size_t  ,
size_t  data_size,
size_t *  output_size,
char **  error_details 
)
static

Definition at line 35 of file alts_unseal_privacy_integrity_crypter.cc.

Variable Documentation

◆ vtable

const alts_crypter_vtable vtable
static
alts_record_protocol_crypter_destruct
void alts_record_protocol_crypter_destruct(alts_crypter *c)
Definition: alts_record_protocol_crypter_common.cc:81
alts_record_protocol_crypter_num_overhead_bytes
size_t alts_record_protocol_crypter_num_overhead_bytes(const alts_crypter *c)
Definition: alts_record_protocol_crypter_common.cc:66
alts_unseal_crypter_process_in_place
static grpc_status_code alts_unseal_crypter_process_in_place(alts_crypter *c, unsigned char *data, size_t data_allocated_size, size_t data_size, size_t *output_size, char **error_details)
Definition: alts_unseal_privacy_integrity_crypter.cc:57


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