Skip to main content

seal_store_key

Function seal_store_key 

Source
pub fn seal_store_key(
    key: &StoreKey,
    recipient: &SealingKey,
    path: &str,
    prefix: &[u8],
) -> Result<Vec<u8>, CryptoError>
Expand description

Seal a store key anonymously, authenticating its path and exact clear prefix (D11). Returns ephemeral key, nonce, ciphertext and tag; format supplies the prefix. Panics if the storage path is empty.