Skip to main content

encrypt_asset_vec

Function encrypt_asset_vec 

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

Convenience: encrypt a whole slice in memory, returning (metadata, ciphertext).