Function sodiumoxide::crypto::scalarmult::curve25519::scalarmult
[−]
[src]
pub fn scalarmult(
Scalar: &Scalar,
GroupElement: &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
.