grpc
src
core
tsi
alts
frame_protector
alts_record_protocol_crypter_common.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright 2018 gRPC authors.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*/
18
19
#ifndef GRPC_CORE_TSI_ALTS_FRAME_PROTECTOR_ALTS_RECORD_PROTOCOL_CRYPTER_COMMON_H
20
#define GRPC_CORE_TSI_ALTS_FRAME_PROTECTOR_ALTS_RECORD_PROTOCOL_CRYPTER_COMMON_H
21
22
#include <
grpc/support/port_platform.h
>
23
24
#include <
grpc/grpc.h
>
25
26
#include "
src/core/tsi/alts/frame_protector/alts_counter.h
"
27
#include "
src/core/tsi/alts/frame_protector/alts_crypter.h
"
28
38
typedef
struct
alts_record_protocol_crypter
{
39
alts_crypter
base
;
40
gsec_aead_crypter
*
crypter
;
41
alts_counter
*
ctr
;
42
}
alts_record_protocol_crypter
;
43
61
grpc_status_code
input_sanity_check
(
62
const
alts_record_protocol_crypter
* rp_crypter,
const
unsigned
char
*
data
,
63
size_t
* output_size,
char
** error_details);
64
79
grpc_status_code
increment_counter
(
alts_record_protocol_crypter
* rp_crypter,
80
char
** error_details);
81
101
alts_record_protocol_crypter
*
alts_crypter_create_common
(
102
gsec_aead_crypter
* crypter,
bool
is_client,
size_t
overflow_size,
103
char
** error_details);
104
109
size_t
alts_record_protocol_crypter_num_overhead_bytes
(
const
alts_crypter
*
c
);
110
111
void
alts_record_protocol_crypter_destruct
(
alts_crypter
*
c
);
112
113
#endif
/* GRPC_CORE_TSI_ALTS_FRAME_PROTECTOR_ALTS_RECORD_PROTOCOL_CRYPTER_COMMON_H \
114
*/
increment_counter
grpc_status_code increment_counter(alts_record_protocol_crypter *rp_crypter, char **error_details)
Definition:
alts_record_protocol_crypter_common.cc:48
alts_counter.h
grpc_status_code
grpc_status_code
Definition:
include/grpc/impl/codegen/status.h:28
alts_record_protocol_crypter
Definition:
alts_record_protocol_crypter_common.h:38
alts_crypter.h
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::crypter
gsec_aead_crypter * crypter
Definition:
alts_record_protocol_crypter_common.h:40
c
void c(T a)
Definition:
miscompile_with_no_unique_address_test.cc:40
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_record_protocol_crypter
struct alts_record_protocol_crypter alts_record_protocol_crypter
grpc.h
data
char data[kBufferLength]
Definition:
abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
alts_crypter
Definition:
alts_crypter.h:135
alts_record_protocol_crypter::base
alts_crypter base
Definition:
alts_record_protocol_crypter_common.h:39
alts_record_protocol_crypter::ctr
alts_counter * ctr
Definition:
alts_record_protocol_crypter_common.h:41
gsec_aead_crypter
Definition:
gsec.h:178
alts_crypter_create_common
alts_record_protocol_crypter * alts_crypter_create_common(gsec_aead_crypter *crypter, bool is_client, size_t overflow_size, char **error_details)
Definition:
alts_record_protocol_crypter_common.cc:90
alts_counter
Definition:
alts_counter.h:30
input_sanity_check
grpc_status_code input_sanity_check(const alts_record_protocol_crypter *rp_crypter, const unsigned char *data, size_t *output_size, char **error_details)
Definition:
alts_record_protocol_crypter_common.cc:32
port_platform.h
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:41