Skip to main content

open_x25519

Function open_x25519 

Source
pub fn open_x25519(
    shared: &[u8; 32],
    sealed: &[u8],
) -> Result<Zeroizing<Vec<u8>>, DecryptError>
Expand description

seal したものを、受け取る側の秘密鍵の代わりに、X25519 の結果で復号する。shared は、受け取る側の x25519_private_key と、使い捨ての公開鍵(sealed_ephemeral_key)の x25519_public_key の X25519