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

Method dbl

dbl/src/lib.rs:45–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43impl Dbl for Array<u8, U8> {
44 #[inline]
45 fn dbl(self) -> Self {
46 let mut val = u64::from_be_bytes(self.into());
47
48 let a = val >> 63;
49 val <<= 1;
50 val ^= a * C64;
51
52 val.to_be_bytes().into()
53 }
54
55 #[inline]
56 fn inv_dbl(self) -> Self {

Callers

nothing calls this directly

Calls 3

defaultFunction · 0.85
try_intoMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected