Skip to main content

seal_circle_key

Function seal_circle_key 

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

Seal a circle 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.