[−][src]Function sodiumoxide::crypto::scalarmult::curve25519::scalarmult
pub fn scalarmult(n: &Scalar, p: &GroupElement) -> Result<GroupElement, ()>
scalarmult()
multiplies a group element p
by an integer n
. It returns the resulting group element Ok(q)
.
If the the GroupElement
is all zero, scalarmult()
returns Err(())
since
the resulting GroupElement
would be all zero, no matter the Scalar
.