[][src]Struct ntge_core::message::encryptor::Encryptor

pub struct Encryptor {
    pub x25519_public_keys: Vec<X25519PublicKey>,
}

Fields

x25519_public_keys: Vec<X25519PublicKey>

Methods

impl Encryptor[src]

pub fn new(x25519_public_keys: &[X25519PublicKey]) -> Self[src]

impl Encryptor[src]

pub fn encrypt(
    &self,
    plaintext: &[u8],
    signature_key: Option<&Ed25519PrivateKey>
) -> Message
[src]

Trait Implementations

impl Debug for Encryptor[src]

impl Drop for Encryptor[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>,