pub(super) struct Key {
inner: AES_KEY,
}
Fields§
§inner: AES_KEY
Implementations§
source§impl Key
impl Key
pub fn new( bytes: &[u8], variant: Variant, cpu_features: Features, ) -> Result<Self, Unspecified>
pub fn encrypt_block(&self, a: Block, cpu_features: Features) -> Block
pub fn encrypt_iv_xor_block( &self, iv: Iv, input: Block, cpu_features: Features, ) -> Block
pub(super) fn ctr32_encrypt_within( &self, in_out: &mut [u8], src: RangeFrom<usize>, ctr: &mut Counter, cpu_features: Features, )
pub fn new_mask(&self, sample: Sample) -> [u8; 5]
pub fn is_aes_hw(&self, cpu_features: Features) -> bool
pub(super) fn inner_less_safe(&self) -> &AES_KEY
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)