Lines Matching refs:num_pending
77 pub(crate) fn finish(mut self, pending: &mut [u8], num_pending: usize) -> Digest { in finish()
80 assert!(num_pending <= pending.len()); in finish()
82 let mut padding_pos = num_pending; in finish()
103 .checked_add(polyfill::u64_from_usize(num_pending)) in finish()
142 num_pending: usize, field
151 num_pending: 0, in new()
159 num_pending: 0, in clone_from()
168 if data.len() < block_len - self.num_pending { in update()
169 self.pending[self.num_pending..(self.num_pending + data.len())].copy_from_slice(data); in update()
170 self.num_pending += data.len(); in update()
175 if self.num_pending > 0 { in update()
176 let to_copy = block_len - self.num_pending; in update()
177 self.pending[self.num_pending..block_len].copy_from_slice(&data[..to_copy]); in update()
180 self.num_pending = 0; in update()
189 self.num_pending = num_to_save_for_later; in update()
199 .finish(&mut self.pending[..block_len], self.num_pending) in finish()
585 num_pending: 0, in nearly_full_context()