pub struct AesKey { /* private fields */ }
Implementations
sourceimpl AesKey
impl AesKey
pub fn new(security_policy: SecurityPolicy, value: &[u8]) -> AesKey
pub fn value(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn block_size(&self) -> usize
pub fn iv_length(&self) -> usize
pub fn key_length(&self) -> usize
pub fn encrypt(
&self,
src: &[u8],
iv: &[u8],
dst: &mut [u8]
) -> Result<usize, StatusCode>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AesKey
impl Send for AesKey
impl Sync for AesKey
impl Unpin for AesKey
impl UnwindSafe for AesKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more