Function safe_network::client::utils::symmetric_encrypt [−][src]
pub fn symmetric_encrypt(
plain_text: &[u8],
secret_key: &SymEncKey,
nonce: Option<&SymEncNonce>
) -> Result<Vec<u8>, Error>
Expand description
Symmetric encryption.
If nonce
is None
, then it will be generated randomly.