Go to the source code of this file.
|
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) |
|
◆ alts_unseal_crypter_create()
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 |
◆ maybe_copy_error_msg()
static void maybe_copy_error_msg |
( |
const char * |
src, |
|
|
char ** |
dst |
|
) |
| |
|
static |
◆ unseal_check()
◆ vtable