pub struct OreAes128<R: Rng + SeedableRng> { /* private fields */ }
Trait Implementations§
Source§impl<R: Rng + SeedableRng> OreCipher for OreAes128<R>
impl<R: Rng + SeedableRng> OreCipher for OreAes128<R>
type LeftBlockType = GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
type RightBlockType = RightBlock32
fn init(k1: &[u8; 16], k2: &[u8; 16]) -> Result<Self, OreError>
fn encrypt_left<const N: usize>( &self, x: &PlainText<N>, ) -> Result<Left<OreAes128<R>, N>, OreError>
fn encrypt<const N: usize>( &self, x: &PlainText<N>, ) -> Result<CipherText<OreAes128<R>, N>, OreError>
fn compare_raw_slices(a: &[u8], b: &[u8]) -> Option<Ordering>
Auto Trait Implementations§
impl<R> !Freeze for OreAes128<R>
impl<R> !RefUnwindSafe for OreAes128<R>
impl<R> Send for OreAes128<R>where
R: Send,
impl<R> !Sync for OreAes128<R>
impl<R> Unpin for OreAes128<R>where
R: Unpin,
impl<R> UnwindSafe for OreAes128<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more