[][src]Struct ntge_core::message::decryptor::Decryptor

pub struct Decryptor {
    pub message: Message,
}

Fields

message: Message

Methods

impl Decryptor[src]

pub fn new(message: &Message) -> Self[src]

impl Decryptor[src]

pub fn verify_message_mac(&self, file_key: &FileKey) -> bool[src]

pub fn decrypt_file_key(
    &self,
    private_key: &X25519PrivateKey
) -> Option<FileKey>
[src]

pub fn decrypt_payload(&self, file_key: &FileKey) -> Option<Vec<u8>>[src]

impl Decryptor[src]

pub fn verify_signature(
    message: &Message,
    public_key: &Ed25519PublicKey
) -> bool
[src]

Trait Implementations

impl Debug for Decryptor[src]

impl Drop for Decryptor[src]

Auto Trait Implementations

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<'a, T> Desc<'a, T> for T[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,