Skip to main content

encrypt_asset_vec_full

Function encrypt_asset_vec_full 

Source
pub fn encrypt_asset_vec_full(
    file_key: &[u8; 32],
    plaintext: &[u8],
) -> (AssetEncryption, Vec<u8>)
Expand description

Convenience: encrypt a whole slice in memory and also return the ciphertext bytes.