Struct AesInfo

pub struct AesInfo { pub aes_mode: AesMode, pub verification_value: [u8; 2], pub salt: Vec<u8> }

Holds the AES information of a file in the zip archive

Fields

aes_mode: AesMode

The AES encryption mode

verification_value: [u8; 2]

The verification key

salt: Vec<u8>

The salt

Trait Implementations

impl Debug for AesInfo

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

Auto Trait Implementations

impl Freeze for AesInfo

impl RefUnwindSafe for AesInfo

impl Send for AesInfo

impl Sync for AesInfo

impl Unpin for AesInfo

impl UnsafeUnpin for AesInfo

impl UnwindSafe for AesInfo

Blanket Implementations

impl<T> Any for AesInfo where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AesInfo where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AesInfo where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for AesInfo

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for AesInfo

type Output = T;

impl<T, U> Into<U> for AesInfo where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for AesInfo where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for AesInfo where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>