Lines Matching refs:protector

157   alts_zero_copy_grpc_protector* protector =  in alts_zero_copy_grpc_protector_protect()  local
160 while (unprotected_slices->length > protector->max_unprotected_data_size) { in alts_zero_copy_grpc_protector_protect()
162 protector->max_unprotected_data_size, in alts_zero_copy_grpc_protector_protect()
163 &protector->unprotected_staging_sb); in alts_zero_copy_grpc_protector_protect()
165 protector->record_protocol, &protector->unprotected_staging_sb, in alts_zero_copy_grpc_protector_protect()
172 protector->record_protocol, unprotected_slices, protected_slices); in alts_zero_copy_grpc_protector_protect()
184 alts_zero_copy_grpc_protector* protector = in alts_zero_copy_grpc_protector_unprotect() local
186 grpc_slice_buffer_move_into(protected_slices, &protector->protected_sb); in alts_zero_copy_grpc_protector_unprotect()
188 while (protector->protected_sb.length >= kZeroCopyFrameLengthFieldSize) { in alts_zero_copy_grpc_protector_unprotect()
189 if (protector->parsed_frame_size == 0) { in alts_zero_copy_grpc_protector_unprotect()
191 if (!read_frame_size(&protector->protected_sb, in alts_zero_copy_grpc_protector_unprotect()
192 &protector->parsed_frame_size)) { in alts_zero_copy_grpc_protector_unprotect()
193 grpc_slice_buffer_reset_and_unref_internal(&protector->protected_sb); in alts_zero_copy_grpc_protector_unprotect()
197 if (protector->protected_sb.length < protector->parsed_frame_size) break; in alts_zero_copy_grpc_protector_unprotect()
200 if (protector->protected_sb.length == protector->parsed_frame_size) { in alts_zero_copy_grpc_protector_unprotect()
201 status = alts_grpc_record_protocol_unprotect(protector->unrecord_protocol, in alts_zero_copy_grpc_protector_unprotect()
202 &protector->protected_sb, in alts_zero_copy_grpc_protector_unprotect()
205 grpc_slice_buffer_move_first(&protector->protected_sb, in alts_zero_copy_grpc_protector_unprotect()
206 protector->parsed_frame_size, in alts_zero_copy_grpc_protector_unprotect()
207 &protector->protected_staging_sb); in alts_zero_copy_grpc_protector_unprotect()
209 protector->unrecord_protocol, &protector->protected_staging_sb, in alts_zero_copy_grpc_protector_unprotect()
212 protector->parsed_frame_size = 0; in alts_zero_copy_grpc_protector_unprotect()
214 grpc_slice_buffer_reset_and_unref_internal(&protector->protected_sb); in alts_zero_copy_grpc_protector_unprotect()
226 alts_zero_copy_grpc_protector* protector = in alts_zero_copy_grpc_protector_destroy() local
228 alts_grpc_record_protocol_destroy(protector->record_protocol); in alts_zero_copy_grpc_protector_destroy()
229 alts_grpc_record_protocol_destroy(protector->unrecord_protocol); in alts_zero_copy_grpc_protector_destroy()
230 grpc_slice_buffer_destroy_internal(&protector->unprotected_staging_sb); in alts_zero_copy_grpc_protector_destroy()
231 grpc_slice_buffer_destroy_internal(&protector->protected_sb); in alts_zero_copy_grpc_protector_destroy()
232 grpc_slice_buffer_destroy_internal(&protector->protected_staging_sb); in alts_zero_copy_grpc_protector_destroy()
233 gpr_free(protector); in alts_zero_copy_grpc_protector_destroy()
239 alts_zero_copy_grpc_protector* protector = in alts_zero_copy_grpc_protector_max_frame_size() local
241 *max_frame_size = protector->max_protected_frame_size; in alts_zero_copy_grpc_protector_max_frame_size()
256 tsi_zero_copy_grpc_protector** protector) { in alts_zero_copy_grpc_protector_create() argument
258 protector == nullptr) { in alts_zero_copy_grpc_protector_create()
297 *protector = &impl->base; in alts_zero_copy_grpc_protector_create()