Skip to main content

seal_handover

Function seal_handover 

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

Seal a pairing’s handover anonymously to the sealing key of the request it answers, authenticating its path and clear prefix (D11). Returns the ephemeral key, nonce, ciphertext and tag; format supplies the prefix. Panics if the storage path is empty.