Skip to main content

seal_own_circle_key

Function seal_own_circle_key 

Source
pub fn seal_own_circle_key(
    key: &CircleKey,
    recipient: &SealingKey,
    binding: &[u8],
) -> Result<Vec<u8>, CryptoError>
Expand description

Seal a circle key to the sealing key of the joining member who made it, for the copy their join request carries (D11). Unlike a slot’s box it binds no path: the joining phone doesn’t know the slot its copy will land in, so binding is what the request can fix, the store and the box’s routing. Returns the ephemeral key, nonce, ciphertext and tag.