Function hacl::ecdh::derive

source ยท
pub fn derive(mode: Mode, p: &[u8], s: &[u8]) -> Result<Vec<u8>, Error>
Expand description

Derive the ECDH shared secret. Returns Ok(p * s) on the provided curve (mode) or an error.