[][src]Trait pqcrypto_traits::sign::SignedMessage

pub trait SignedMessage {
    fn as_bytes(&self) -> &[u8];
fn from_bytes(bytes: &[u8]) -> Result<Self>
    where
        Self: Sized
; }

A signed message.

This object contains both the signed message and the signature on it. If you use this struct, you no longer should send the plain text along with it. The open methods make sure that you will not process invalid ciphertexts by not returning the plain text if the signature is invalid.

Required methods

fn as_bytes(&self) -> &[u8]

fn from_bytes(bytes: &[u8]) -> Result<Self> where
    Self: Sized

Loading content...

Implementors

Loading content...