pub enum CounterPosition {
Prefix,
Postfix,
Custom(usize),
}
Expand description
Counter position within the counter block
Variants§
Prefix
Counter is placed at the beginning of the block (bytes 0 to counter_size-1) This is common in some implementations, especially with 8-byte counters
Postfix
Counter is placed at the end of the block (last counter_size bytes) This is the most common arrangement for AES-CTR
Custom(usize)
Counter is placed at a specific offset within the block Allows for custom layouts
Trait Implementations§
Source§impl Clone for CounterPosition
impl Clone for CounterPosition
Source§fn clone(&self) -> CounterPosition
fn clone(&self) -> CounterPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CounterPosition
impl Debug for CounterPosition
Source§impl PartialEq for CounterPosition
impl PartialEq for CounterPosition
impl Copy for CounterPosition
impl StructuralPartialEq for CounterPosition
Auto Trait Implementations§
impl Freeze for CounterPosition
impl RefUnwindSafe for CounterPosition
impl Send for CounterPosition
impl Sync for CounterPosition
impl Unpin for CounterPosition
impl UnwindSafe for CounterPosition
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