modfixed_mode;#[cfg(feature ="alloc")]modmode;pubusefixed_mode::FixedCtrBlockCipher;#[cfg(feature ="alloc")]pubusemode::CtrBlockCipher;/// Adds one to the whole block as a big-endian integer, wrapping on overflow.
////// Constant time: the carry runs through every byte without branching.
fnincrement_be(counter:&mut [u8]){letmut carry =1_u16;for byte in counter.iter_mut().rev(){let sum =u16::from(*byte)+ carry;*byte = sum asu8;
carry = sum >>8;}}