pub fn DH(
alg: KEM,
sk: &PrivateKey,
pk: &PublicKey
) -> Result<SharedSecret, HpkeError>Expand description
Perform a non-interactive Diffie-Hellman exchange using the private key
skX and public key pkY to produce a Diffie-Hellman shared
secret of length Ndh. This function can raise a
ValidationError as described in
validation.