Trait core_crypto::BlockCipher [−][src]
pub trait BlockCipher: Sized { fn encrypt_message(
signer_sk: &[u8; 32],
receiver_pk: &[u8; 32],
msg: &[u8]
) -> Result<Vec<u8>>; fn decrypt_message(
receiver_sk: &[u8; 32],
signer_pk: &[u8; 32],
enc_msg: &[u8]
) -> Result<Vec<u8>>; }
Expand description
This trait defines an association of symbol or nis1 encrypt and decrypt message.