Function steam_vent_crypto::symmetric_encrypt
source · pub fn symmetric_encrypt(input: BytesMut, key: &[u8; 32]) -> BytesMut
Expand description
Generate a random IV and encrypt input
with it and key
.
pub fn symmetric_encrypt(input: BytesMut, key: &[u8; 32]) -> BytesMut
Generate a random IV and encrypt input
with it and key
.