pub fn derive( alg: Algorithm, point: impl AsRef<[u8]>, scalar: impl AsRef<[u8]>, ) -> Result<Vec<u8>, Error>
Derive the ECDH shared secret. Returns Ok(point * scalar) on the provided curve Algorithm or an error.
Ok(point * scalar)
Algorithm