Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

AesContext

pub struct AesContext<P: CheckedPermissions + MessageAllowed<AesClear>> { /* private fields */ }

Implementations

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>,

  • Permission: os/crypto / AesClear

    Permission group: cryptography.primitives

    Required signature: thirdParty

    Approval: autoAllow

  • Permission: os/crypto / AesExecute

    Permission group: cryptography.primitives

    Required signature: thirdParty

    Approval: autoAllow

pub fn add_aad(&self, aad: &[u8]) -> Result<usize, CryptoError>
where P: MessageAllowed<AesAad>,

  • Permission: os/crypto / AesClear

    Permission group: cryptography.primitives

    Required signature: thirdParty

    Approval: autoAllow

  • Permission: os/crypto / AesAad

    Permission group: cryptography.primitives

    Required signature: thirdParty

    Approval: autoAllow

pub fn gcm_tag(&self) -> Result<[u8; 16], CryptoError>
where P: MessageAllowed<AesGcmTag>,

  • Permission: os/crypto / AesClear

    Permission group: cryptography.primitives

    Required signature: thirdParty

    Approval: autoAllow

  • Permission: os/crypto / AesGcmTag

    Permission group: cryptography.primitives

    Required signature: thirdParty

    Approval: autoAllow

Trait Implementations

impl<P: CheckedPermissions + MessageAllowed<AesClear>> Drop for AesContext<P>

fn drop(&mut self)

Permission: os/crypto / AesClear

Permission group: cryptography.primitives

Required signature: thirdParty

Approval: autoAllow

Executes the destructor for this type. Read more

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> UnsafeUnpin for AesContext<P>

impl<P> UnwindSafe for AesContext<P>