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

Enum

AesMode

pub enum AesMode {
    Ecb,
    Cbc {
        iv: [u8; 16],
    },
    Ctr {
        iv: [u8; 16],
    },
    Gcm {
        iv: [u8; 12],
    },
}

Variants

Ecb

Cbc

Fields

iv: [u8; 16]

Ctr

Fields

iv: [u8; 16]

Gcm

Fields

iv: [u8; 12]

Trait Implementations

impl Archive for AesMode
where [u8; 16]: Archive, [u8; 12]: Archive,

type Archived = ArchivedAesMode

The archived representation of this type. Read more

type Resolver = AesModeResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.

fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )

Creates the archived version of this value at the given position and writes it to the given output. Read more

const COPY_OPTIMIZATION: CopyOptimization<Self> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more

impl Clone for AesMode

fn clone(&self) -> AesMode

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for AesMode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl<__D: Fallible + ?Sized> Deserialize<AesMode, __D> for Archived<AesMode>
where [u8; 16]: Archive, <[u8; 16] as Archive>::Archived: Deserialize<[u8; 16], __D>, [u8; 12]: Archive, <[u8; 12] as Archive>::Archived: Deserialize<[u8; 12], __D>,

fn deserialize( &self, deserializer: &mut __D, ) -> Result<AesMode, <__D as Fallible>::Error>

Deserializes using the given deserializer

impl Drop for AesMode

fn drop(&mut self)

Executes the destructor for this type. Read more

impl<__S: Fallible + ?Sized> Serialize<__S> for AesMode
where [u8; 16]: Serialize<__S>, [u8; 12]: Serialize<__S>,

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.

impl Zeroize for AesMode

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.

Auto Trait Implementations

impl Freeze for AesMode

impl RefUnwindSafe for AesMode

impl Send for AesMode

impl Sync for AesMode

impl Unpin for AesMode

impl UnsafeUnpin for AesMode

impl UnwindSafe for AesMode