Skip to main content

encrypt_asset_vec_with_prefix

Function encrypt_asset_vec_with_prefix 

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

Convenience: encrypt a whole slice in memory with an explicit prefix (deterministic).