Struct cryptoxide::curve25519::GePartial
source · pub struct GePartial { /* private fields */ }
Expand description
Curve Group element without t=X*Y
Implementations§
source§impl GePartial
impl GePartial
pub const ZERO: Self = _
pub fn to_bytes(&self) -> [u8; 32]
pub fn double_p1p1(&self) -> GeP1P1
pub fn double(&self) -> Self
pub fn double_full(&self) -> Ge
sourcepub fn double_scalarmult_vartime(
a_scalar: &Scalar,
a_point: Ge,
b_scalar: &Scalar
) -> GePartial
pub fn double_scalarmult_vartime( a_scalar: &Scalar, a_point: Ge, b_scalar: &Scalar ) -> GePartial
Calculate r = a * A + b * B
ⓘ
double_scalarmult_vartime(a, A, b) = a * A + b * B
where a is a scalar A is an arbitrary point b is a scalar B the ED25519 base point (not a parameter to the function)
Note that the