GRPC Core
9.0.0
|
#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"
Functions | |
grpc_status_code | alts_seal_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 to be used to perform a seal operation, given a gsec_aead_crypter instance and a flag indicating if the created instance will be used at the client or server side. More... | |
grpc_status_code alts_seal_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 to be used to perform a seal 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.
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).