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

Method len64_padding_be

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

Source from the content-addressed store, hash-verified

403 /// big-endian byte order.
404 #[inline]
405 pub fn len64_padding_be(&mut self, data_len: u64, compress: impl FnMut(&Array<u8, BS>)) {
406 self.digest_pad(0x80, &data_len.to_be_bytes(), compress);
407 }
408
409 /// Pad message with 0x80, zeros and 64-bit message length using
410 /// little-endian byte order.

Callers 1

test_eager_paddingsFunction · 0.80

Calls 1

digest_padMethod · 0.80

Tested by 1

test_eager_paddingsFunction · 0.64