Skip to main content

encrypt_asset_rekey_stream_with_prefix

Function encrypt_asset_rekey_stream_with_prefix 

Source
pub fn encrypt_asset_rekey_stream_with_prefix<R: Read, W: Write>(
    amk: &Amk,
    file_id: &Uuid,
    reader: R,
    writer: W,
    nonce_prefix: [u8; 7],
    replaces: Option<[u8; 7]>,
) -> Result<(AssetEncryption, [u8; 32]), RekeyStreamError>
Expand description

encrypt_asset_rekey_stream with an explicit nonce_prefix — the one implementation of the fold and the reuse refusal, which encrypt_asset_rekey_with_prefix drives over a slice, so the two cannot produce different bytes.