Skip to main content

ASSET_KEYWRAP_V1

Constant ASSET_KEYWRAP_V1 

Source
pub const ASSET_KEYWRAP_V1: &[u8] = b"asset-keywrap/v1";
Expand description

Wrap key for an externally-chosen file key (key_mode = wrapped; an adopted web-upload drop): HKDF(ikm=AMK, salt=file_id || wrap_nonce, info=ASSET_KEYWRAP_V1). The sealing/unsealing functions land with the wrapped-key slice; the label is the contract (see https://docs/design/cryptography/encryption/).