pub fn x25519_shared_secret(
local_secret: [u8; 32],
peer_public: [u8; 32],
) -> Result<[u8; 32], KeyError>Expand description
Derive an X25519 shared secret after rejecting public inputs that cannot identify a peer. Low-order public keys produce the all-zero shared secret; that result is never usable as recipient identity material.