[][src]Struct xaynet::message::MessageSeal

pub struct MessageSeal<'a, 'b> {
    pub recipient_pk: &'a PublicEncryptKey,
    pub sender_sk: &'b SecretSigningKey,
}

A seal to sign and encrypt Messages.

Fields

recipient_pk: &'a PublicEncryptKey

The public key of the recipient, which is used to encrypt the messages.

sender_sk: &'b SecretSigningKey

The Secret key of the sender, which is used to sign the messages.

Implementations

impl<'a, 'b> MessageSeal<'a, 'b>[src]

pub fn seal<C, D, M, N>(&self, message: &Message<C, D, M, N>) -> Vec<u8> where
    C: Borrow<Certificate>,
    D: Borrow<LocalSeedDict>,
    M: Borrow<MaskObject>,
    N: Borrow<MaskObject>, 
[src]

Signs and encrypts the given message.

Auto Trait Implementations

impl<'a, 'b> RefUnwindSafe for MessageSeal<'a, 'b>

impl<'a, 'b> Send for MessageSeal<'a, 'b>

impl<'a, 'b> Sync for MessageSeal<'a, 'b>

impl<'a, 'b> Unpin for MessageSeal<'a, 'b>

impl<'a, 'b> UnwindSafe for MessageSeal<'a, 'b>

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> Instrument 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>, 

impl<T> WithSubscriber for T[src]