[][src]Struct p12::MacData

pub struct MacData {
    pub mac: DigestInfo,
    pub salt: Vec<u8>,
    pub iterations: u32,
}

Fields

mac: DigestInfosalt: Vec<u8>iterations: u32

Implementations

impl MacData[src]

pub fn parse(r: BERReader<'_, '_>) -> Result<MacData, ASN1Error>[src]

pub fn write(&self, w: DERWriter<'_>)[src]

pub fn verify_mac(&self, data: &[u8], password: &[u8]) -> bool[src]

pub fn new(data: &[u8], password: &[u8]) -> MacData[src]

Trait Implementations

impl Debug for MacData[src]

Auto Trait Implementations

impl RefUnwindSafe for MacData

impl Send for MacData

impl Sync for MacData

impl Unpin for MacData

impl UnwindSafe for MacData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.