pub fn derive(mode: Mode, p: &[u8], s: &[u8]) -> Result<Vec<u8>, Error>
Derive the ECDH shared secret. Returns Ok(p * s) on the provided curve (mode) or an error.
Ok(p * s)
mode