Skip to main content

x25519_public_key

Function x25519_public_key 

Source
pub fn x25519_public_key(
    public_key: &PublicKey,
) -> Result<[u8; 32], InvalidPublicKey>
Expand description

相手の公開鍵を、X25519 の公開鍵(Montgomery の u)にする。SharedKey::derive と同じく、使えない点は断る