Go to the documentation of this file.
26 if (
dst !=
nullptr && src !=
nullptr) {
34 size_t* output_size,
char** error_details) {
35 if (rp_crypter ==
nullptr) {
38 }
else if (
data ==
nullptr) {
41 }
else if (output_size ==
nullptr) {
49 char** error_details) {
50 bool is_overflow =
false;
57 const char error_msg[] =
58 "crypter counter is wrapped. The connection"
59 "should be closed and the key should be deleted.";
68 size_t num_overhead_bytes = 0;
69 char* error_details =
nullptr;
73 rp_crypter->
crypter, &num_overhead_bytes, &error_details);
75 return num_overhead_bytes;
92 char** error_details) {
93 if (crypter !=
nullptr) {
96 size_t counter_size = 0;
104 &rp_crypter->ctr, error_details);
108 rp_crypter->crypter = crypter;
111 const char error_msg[] =
"crypter is nullptr.";
static void maybe_copy_error_msg(const char *src, char **dst)
alts_record_protocol_crypter * alts_crypter_create_common(gsec_aead_crypter *crypter, bool is_client, size_t overflow_size, char **error_details)
GPRAPI void * gpr_malloc(size_t size)
grpc_status_code alts_counter_increment(alts_counter *crypter_counter, bool *is_overflow, char **error_details)
@ GRPC_STATUS_INVALID_ARGUMENT
grpc_status_code gsec_aead_crypter_tag_length(const gsec_aead_crypter *crypter, size_t *tag_length_to_return, char **error_details)
gsec_aead_crypter * crypter
grpc_status_code increment_counter(alts_record_protocol_crypter *rp_crypter, char **error_details)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void alts_record_protocol_crypter_destruct(alts_crypter *c)
size_t alts_record_protocol_crypter_num_overhead_bytes(const alts_crypter *c)
grpc_status_code gsec_aead_crypter_nonce_length(const gsec_aead_crypter *crypter, size_t *nonce_length_to_return, char **error_details)
void gsec_aead_crypter_destroy(gsec_aead_crypter *crypter)
grpc_status_code alts_counter_create(bool is_client, size_t counter_size, size_t overflow_size, alts_counter **crypter_counter, char **error_details)
void alts_counter_destroy(alts_counter *crypter_counter)
grpc_status_code input_sanity_check(const alts_record_protocol_crypter *rp_crypter, const unsigned char *data, size_t *output_size, char **error_details)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:41