Trait pqcrypto_traits::sign::SignedMessage [−][src]
pub trait SignedMessage {
fn as_bytes(&self) -> &[u8];
fn from_bytes(bytes: &[u8]) -> Result<Self>
where
Self: Sized;
}
Expand description
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.