pub struct AesContext<P: CheckedPermissions + MessageAllowed<AesClear>> { /* private fields */ }Implementations§
Source§impl<P: CheckedPermissions + MessageAllowed<AesClear>> AesContext<P>
impl<P: CheckedPermissions + MessageAllowed<AesClear>> AesContext<P>
pub fn execute(
&self,
buf: MemoryRange,
offset: usize,
len: usize,
direction: Direction,
) -> Result<usize, CryptoError>where
P: MessageAllowed<AesExecute>,
pub fn add_aad(&self, aad: &[u8]) -> Result<usize, CryptoError>where
P: MessageAllowed<AesAad>,
pub fn gcm_tag(&self) -> Result<[u8; 16], CryptoError>where
P: MessageAllowed<AesGcmTag>,
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for AesContext<P>
impl<P> RefUnwindSafe for AesContext<P>
impl<P> Send for AesContext<P>
impl<P> Sync for AesContext<P>
impl<P> Unpin for AesContext<P>
impl<P> UnwindSafe for AesContext<P>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.