Home
last modified time | relevance | path

Searched refs:unprotected_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.cc43 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_integrity_only_extra_copy_protect() argument
46 size_t data_length = unprotected_slices->length; in alts_grpc_integrity_only_extra_copy_protect()
48 unprotected_slices->length + rp->header_length + rp->tag_length; in alts_grpc_integrity_only_extra_copy_protect()
51 for (size_t i = 0; i < unprotected_slices->count; i++) { in alts_grpc_integrity_only_extra_copy_protect()
52 memcpy(data, GRPC_SLICE_START_PTR(unprotected_slices->slices[i]), in alts_grpc_integrity_only_extra_copy_protect()
53 GRPC_SLICE_LENGTH(unprotected_slices->slices[i])); in alts_grpc_integrity_only_extra_copy_protect()
54 data += GRPC_SLICE_LENGTH(unprotected_slices->slices[i]); in alts_grpc_integrity_only_extra_copy_protect()
74 grpc_slice_buffer_reset_and_unref_internal(unprotected_slices); in alts_grpc_integrity_only_extra_copy_protect()
79 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_integrity_only_protect() argument
82 if (rp == nullptr || unprotected_slices == nullptr || in alts_grpc_integrity_only_protect()
[all …]
Dalts_grpc_privacy_integrity_record_protocol.cc36 alts_grpc_record_protocol* rp, grpc_slice_buffer* unprotected_slices, in alts_grpc_privacy_integrity_protect() argument
39 if (rp == nullptr || unprotected_slices == nullptr || in alts_grpc_privacy_integrity_protect()
48 unprotected_slices->length + rp->header_length + in alts_grpc_privacy_integrity_protect()
56 unprotected_slices); in alts_grpc_privacy_integrity_protect()
59 rp->iovec_rp, rp->iovec_buf, unprotected_slices->count, in alts_grpc_privacy_integrity_protect()
68 grpc_slice_buffer_reset_and_unref_internal(unprotected_slices); in alts_grpc_privacy_integrity_protect()
74 grpc_slice_buffer* unprotected_slices) { in alts_grpc_privacy_integrity_unprotect() argument
77 unprotected_slices == nullptr) { in alts_grpc_privacy_integrity_unprotect()
114 grpc_slice_buffer_add(unprotected_slices, unprotected_slice); in alts_grpc_privacy_integrity_unprotect()
Dalts_zero_copy_grpc_protector.cc150 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* unprotected_slices, in alts_zero_copy_grpc_protector_protect() argument
152 if (self == nullptr || unprotected_slices == nullptr || in alts_zero_copy_grpc_protector_protect()
160 while (unprotected_slices->length > protector->max_unprotected_data_size) { in alts_zero_copy_grpc_protector_protect()
161 grpc_slice_buffer_move_first(unprotected_slices, in alts_zero_copy_grpc_protector_protect()
172 protector->record_protocol, unprotected_slices, protected_slices); in alts_zero_copy_grpc_protector_protect()
177 grpc_slice_buffer* unprotected_slices) { in alts_zero_copy_grpc_protector_unprotect() argument
178 if (self == nullptr || unprotected_slices == nullptr || in alts_zero_copy_grpc_protector_unprotect()
203 unprotected_slices); in alts_zero_copy_grpc_protector_unprotect()
210 unprotected_slices); in alts_zero_copy_grpc_protector_unprotect()
Dalts_grpc_record_protocol_common.cc124 alts_grpc_record_protocol* self, grpc_slice_buffer* unprotected_slices, in alts_grpc_record_protocol_protect() argument
127 self->vtable == nullptr || unprotected_slices == nullptr || in alts_grpc_record_protocol_protect()
134 return self->vtable->protect(self, unprotected_slices, protected_slices); in alts_grpc_record_protocol_protect()
139 grpc_slice_buffer* unprotected_slices) { in alts_grpc_record_protocol_unprotect() argument
142 unprotected_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_grpc_record_protocol.h50 alts_grpc_record_protocol* self, grpc_slice_buffer* unprotected_slices,
69 grpc_slice_buffer* unprotected_slices);
Dalts_grpc_record_protocol_common.h36 grpc_slice_buffer* unprotected_slices,
40 grpc_slice_buffer* unprotected_slices);
/external/grpc-grpc/src/core/tsi/
Dtransport_security_grpc.cc42 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* unprotected_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()
54 grpc_slice_buffer* unprotected_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.h43 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* unprotected_slices,
54 grpc_slice_buffer* unprotected_slices);
62 grpc_slice_buffer* unprotected_slices,
66 grpc_slice_buffer* unprotected_slices);
Dlocal_transport_security.cc54 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* unprotected_slices, in local_zero_copy_grpc_protector_protect() argument
56 if (self == nullptr || unprotected_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()
67 grpc_slice_buffer* unprotected_slices) { in local_zero_copy_grpc_protector_unprotect() argument
68 if (self == nullptr || unprotected_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.cc412 tsi_zero_copy_grpc_protector* self, grpc_slice_buffer* unprotected_slices, in fake_zero_copy_grpc_protector_protect() argument
414 if (self == nullptr || unprotected_slices == nullptr || in fake_zero_copy_grpc_protector_protect()
421 while (unprotected_slices->length > 0) { in fake_zero_copy_grpc_protector_protect()
424 unprotected_slices->length + TSI_FAKE_FRAME_HEADER_SIZE); in fake_zero_copy_grpc_protector_protect()
430 grpc_slice_buffer_move_first(unprotected_slices, data_length, in fake_zero_copy_grpc_protector_protect()
438 grpc_slice_buffer* unprotected_slices) { in fake_zero_copy_grpc_protector_unprotect() argument
439 if (self == nullptr || unprotected_slices == nullptr || in fake_zero_copy_grpc_protector_unprotect()
464 unprotected_slices); in fake_zero_copy_grpc_protector_unprotect()