pub struct Key {
words: [u32; 8],
}
Fields§
§words: [u32; 8]
Implementations§
source§impl Key
impl Key
pub fn encrypt_in_place(&self, counter: Counter, in_out: &mut [u8])
pub fn encrypt_iv_xor_in_place(&self, iv: Iv, in_out: &mut [u8; 32])
pub fn new_mask(&self, sample: Sample) -> [u8; 5]
sourcepub fn encrypt_within(
&self,
counter: Counter,
in_out: &mut [u8],
src: RangeFrom<usize>,
)
pub fn encrypt_within( &self, counter: Counter, in_out: &mut [u8], src: RangeFrom<usize>, )
Analogous to slice::copy_within()
.
sourcefn encrypt_less_safe(
&self,
counter: Counter,
in_out: &mut [u8],
src: RangeFrom<usize>,
)
fn encrypt_less_safe( &self, counter: Counter, in_out: &mut [u8], src: RangeFrom<usize>, )
This is “less safe” because it skips the important check that encrypt_within
does.
Only call this with src
equal to 0..
or from encrypt_within
.
pub(super) fn words_less_safe(&self) -> &[u32; 8]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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