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

Method len128_padding_be

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

Source from the content-addressed store, hash-verified

417 /// big-endian byte order.
418 #[inline]
419 pub fn len128_padding_be(&mut self, data_len: u128, compress: impl FnMut(&Array<u8, BS>)) {
420 self.digest_pad(0x80, &data_len.to_be_bytes(), compress);
421 }
422}
423
424#[cfg(feature = "zeroize")]

Callers 1

test_eager_paddingsFunction · 0.80

Calls 1

digest_padMethod · 0.80

Tested by 1

test_eager_paddingsFunction · 0.64