Home
last modified time | relevance | path

Searched refs:protected_slices (Results 1 – 10 of 10) sorted by relevance

/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_integrity_only_record_protocol.cc44 grpc_slice_buffer* protected_slices) { in alts_grpc_integrity_only_extra_copy_protect() argument
73 grpc_slice_buffer_add(protected_slices, protected_slice); in alts_grpc_integrity_only_extra_copy_protect()
80 grpc_slice_buffer* protected_slices) { in alts_grpc_integrity_only_protect() argument
83 protected_slices == nullptr) { in alts_grpc_integrity_only_protect()
92 protected_slices); in alts_grpc_integrity_only_protect()
114 grpc_slice_buffer_add(protected_slices, header_slice); in alts_grpc_integrity_only_protect()
115 grpc_slice_buffer_move_into(unprotected_slices, protected_slices); in alts_grpc_integrity_only_protect()
116 grpc_slice_buffer_add(protected_slices, tag_slice); in alts_grpc_integrity_only_protect()
121 alts_grpc_record_protocol* rp, grpc_slice_buffer* protected_slices, in alts_grpc_integrity_only_unprotect() argument
124 if (rp == nullptr || protected_slices == nullptr || in alts_grpc_integrity_only_unprotect()
[all …]
Dalts_grpc_privacy_integrity_record_protocol.cc37 grpc_slice_buffer* protected_slices) { in alts_grpc_privacy_integrity_protect() argument
40 protected_slices == nullptr) { in alts_grpc_privacy_integrity_protect()
67 grpc_slice_buffer_add(protected_slices, protected_slice); in alts_grpc_privacy_integrity_protect()
73 alts_grpc_record_protocol* rp, grpc_slice_buffer* protected_slices, in alts_grpc_privacy_integrity_unprotect() argument
76 if (rp == nullptr || protected_slices == nullptr || in alts_grpc_privacy_integrity_unprotect()
85 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_privacy_integrity_unprotect()
90 protected_slices->length - rp->header_length - rp->tag_length; in alts_grpc_privacy_integrity_unprotect()
96 grpc_slice_buffer_move_first(protected_slices, rp->header_length, in alts_grpc_privacy_integrity_unprotect()
101 alts_grpc_record_protocol_convert_slice_buffer_to_iovec(rp, protected_slices); in alts_grpc_privacy_integrity_unprotect()
104 rp->iovec_rp, header_iovec, rp->iovec_buf, protected_slices->count, in alts_grpc_privacy_integrity_unprotect()
[all …]
Dalts_grpc_record_protocol_common.cc125 grpc_slice_buffer* protected_slices) { in alts_grpc_record_protocol_protect() argument
128 protected_slices == nullptr) { in alts_grpc_record_protocol_protect()
134 return self->vtable->protect(self, unprotected_slices, protected_slices); in alts_grpc_record_protocol_protect()
138 alts_grpc_record_protocol* self, grpc_slice_buffer* protected_slices, in alts_grpc_record_protocol_unprotect() argument
141 self->vtable == nullptr || protected_slices == nullptr || in alts_grpc_record_protocol_unprotect()
148 return self->vtable->unprotect(self, protected_slices, unprotected_slices); in alts_grpc_record_protocol_unprotect()
Dalts_zero_copy_grpc_protector.cc151 grpc_slice_buffer* protected_slices) { in alts_zero_copy_grpc_protector_protect() argument
153 protected_slices == nullptr) { in alts_zero_copy_grpc_protector_protect()
166 protected_slices); in alts_zero_copy_grpc_protector_protect()
172 protector->record_protocol, unprotected_slices, protected_slices); in alts_zero_copy_grpc_protector_protect()
176 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* protected_slices, in alts_zero_copy_grpc_protector_unprotect() argument
179 protected_slices == nullptr) { in alts_zero_copy_grpc_protector_unprotect()
186 grpc_slice_buffer_move_into(protected_slices, &protector->protected_sb); in alts_zero_copy_grpc_protector_unprotect()
Dalts_grpc_record_protocol.h51 grpc_slice_buffer* protected_slices);
68 alts_grpc_record_protocol* self, grpc_slice_buffer* protected_slices,
Dalts_grpc_record_protocol_common.h37 grpc_slice_buffer* protected_slices);
39 grpc_slice_buffer* protected_slices,
/external/grpc-grpc/src/core/tsi/
Dtransport_security_grpc.cc43 grpc_slice_buffer* protected_slices) { in tsi_zero_copy_grpc_protector_protect() argument
45 unprotected_slices == nullptr || protected_slices == nullptr) { in tsi_zero_copy_grpc_protector_protect()
49 return self->vtable->protect(self, unprotected_slices, protected_slices); in tsi_zero_copy_grpc_protector_protect()
53 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* protected_slices, in tsi_zero_copy_grpc_protector_unprotect() argument
56 protected_slices == nullptr || unprotected_slices == nullptr) { in tsi_zero_copy_grpc_protector_unprotect()
60 return self->vtable->unprotect(self, protected_slices, unprotected_slices); in tsi_zero_copy_grpc_protector_unprotect()
Dtransport_security_grpc.h44 grpc_slice_buffer* protected_slices);
53 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* protected_slices,
63 grpc_slice_buffer* protected_slices);
65 grpc_slice_buffer* protected_slices,
Dlocal_transport_security.cc55 grpc_slice_buffer* protected_slices) { in local_zero_copy_grpc_protector_protect() argument
57 protected_slices == nullptr) { in local_zero_copy_grpc_protector_protect()
61 grpc_slice_buffer_move_into(unprotected_slices, protected_slices); in local_zero_copy_grpc_protector_protect()
66 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* protected_slices, in local_zero_copy_grpc_protector_unprotect() argument
69 protected_slices == nullptr) { in local_zero_copy_grpc_protector_unprotect()
74 grpc_slice_buffer_move_into(protected_slices, unprotected_slices); in local_zero_copy_grpc_protector_unprotect()
Dfake_transport_security.cc413 grpc_slice_buffer* protected_slices) { in fake_zero_copy_grpc_protector_protect() argument
415 protected_slices == nullptr) { in fake_zero_copy_grpc_protector_protect()
428 grpc_slice_buffer_add(protected_slices, slice); in fake_zero_copy_grpc_protector_protect()
431 protected_slices); in fake_zero_copy_grpc_protector_protect()
437 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* protected_slices, in fake_zero_copy_grpc_protector_unprotect() argument
440 protected_slices == nullptr) { in fake_zero_copy_grpc_protector_unprotect()
445 grpc_slice_buffer_move_into(protected_slices, &impl->protected_sb); in fake_zero_copy_grpc_protector_unprotect()