pub fn encrypt_asset_with_prefix<R: Read, W: Write>(
file_key: &[u8; 32],
nonce_prefix: [u8; 7],
reader: R,
writer: W,
) -> Result<AssetEncryption, StreamError>Expand description
As encrypt_asset but with an explicit nonce prefix, so a client can regenerate the
exact ciphertext from the plaintext + file key + the prefix recorded in the manifest
(the client stores plaintext locally; ciphertext is derived for upload/backup).