MCPcopy Create free account
hub / github.com/RustCrypto/utils / len64_padding_le

Method len64_padding_le

block-buffer/src/lib.rs:412–414  ·  view source on GitHub ↗
(&mut self, data_len: u64, compress: impl FnMut(&Array<u8, BS>))

Source from the content-addressed store, hash-verified

410 /// little-endian byte order.
411 #[inline]
412 pub fn len64_padding_le(&mut self, data_len: u64, compress: impl FnMut(&Array<u8, BS>)) {
413 self.digest_pad(0x80, &data_len.to_le_bytes(), compress);
414 }
415
416 /// Pad message with 0x80, zeros and 128-bit message length using
417 /// big-endian byte order.

Callers 1

test_eager_paddingsFunction · 0.80

Calls 1

digest_padMethod · 0.80

Tested by 1

test_eager_paddingsFunction · 0.64