Trait cyphres::EncryptedPayload

source ·
pub trait EncryptedPayload: Payload {
    type Key;
    type InnerPayload: Payload;

    // Required method
    fn decrypt(self, key: &Self::Key) -> Self::InnerPayload;
}

Required Associated Types§

Required Methods§

source

fn decrypt(self, key: &Self::Key) -> Self::InnerPayload

Object Safety§

This trait is not object safe.

Implementors§