Function derive

Source
pub fn derive(
    alg: Algorithm,
    point: impl AsRef<[u8]>,
    scalar: impl AsRef<[u8]>,
) -> Result<Vec<u8>, Error>
Expand description

Derive the ECDH shared secret. Returns Ok(point * scalar) on the provided curve Algorithm or an error.