pub struct DecafAffinePoint(pub(crate) AffinePoint);Expand description
Affine point on the twisted curve
Tuple Fields§
§0: AffinePointImplementations§
Trait Implementations§
Source§impl Add<&AffinePoint> for &DecafPoint
impl Add<&AffinePoint> for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§impl<'b> Add<&'b AffinePoint> for DecafPoint
impl<'b> Add<&'b AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &'b DecafAffinePoint) -> DecafPoint
fn add(self, rhs: &'b DecafAffinePoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add<&DecafPoint> for &DecafAffinePoint
impl Add<&DecafPoint> for &DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§impl<'b> Add<&'b DecafPoint> for DecafAffinePoint
impl<'b> Add<&'b DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &'b DecafPoint) -> DecafPoint
fn add(self, rhs: &'b DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'a> Add<AffinePoint> for &'a DecafPoint
impl<'a> Add<AffinePoint> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafAffinePoint) -> DecafPoint
fn add(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add<AffinePoint> for DecafPoint
impl Add<AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafAffinePoint) -> DecafPoint
fn add(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'a> Add<DecafPoint> for &'a DecafAffinePoint
impl<'a> Add<DecafPoint> for &'a DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafPoint) -> DecafPoint
fn add(self, rhs: DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add<DecafPoint> for DecafAffinePoint
impl Add<DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafPoint) -> DecafPoint
fn add(self, rhs: DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl AddAssign<&AffinePoint> for DecafPoint
impl AddAssign<&AffinePoint> for DecafPoint
Source§fn add_assign(&mut self, other: &DecafAffinePoint)
fn add_assign(&mut self, other: &DecafAffinePoint)
Performs the
+= operation. Read moreSource§impl AddAssign<&DecafPoint> for DecafAffinePoint
impl AddAssign<&DecafPoint> for DecafAffinePoint
Source§fn add_assign(&mut self, rhs: &DecafPoint)
fn add_assign(&mut self, rhs: &DecafPoint)
Performs the
+= operation. Read moreSource§impl AddAssign<AffinePoint> for DecafPoint
impl AddAssign<AffinePoint> for DecafPoint
Source§fn add_assign(&mut self, rhs: DecafAffinePoint)
fn add_assign(&mut self, rhs: DecafAffinePoint)
Performs the
+= operation. Read moreSource§impl AddAssign<DecafPoint> for DecafAffinePoint
impl AddAssign<DecafPoint> for DecafAffinePoint
Source§fn add_assign(&mut self, rhs: DecafPoint)
fn add_assign(&mut self, rhs: DecafPoint)
Performs the
+= operation. Read moreSource§impl AffineCoordinates for AffinePoint
impl AffineCoordinates for AffinePoint
Source§impl Clone for AffinePoint
impl Clone for AffinePoint
Source§fn clone(&self) -> AffinePoint
fn clone(&self) -> AffinePoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConditionallySelectable for AffinePoint
impl ConditionallySelectable for AffinePoint
Source§fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl ConstantTimeEq for AffinePoint
impl ConstantTimeEq for AffinePoint
Source§impl CtEq for AffinePoint
impl CtEq for AffinePoint
Source§impl CtSelect for AffinePoint
impl CtSelect for AffinePoint
Source§impl CurveAffine for AffinePoint
impl CurveAffine for AffinePoint
Source§type Curve = DecafPoint
type Curve = DecafPoint
The efficient representation for this elliptic curve.
Source§type Scalar = Scalar<Decaf448>
type Scalar = Scalar<Decaf448>
Scalars modulo the order of this group’s scalar field. Read more
Source§fn identity() -> AffinePoint
fn identity() -> AffinePoint
Returns the additive identity.
Source§fn generator() -> AffinePoint
fn generator() -> AffinePoint
Returns a fixed generator of unknown exponent.
Source§fn is_identity(&self) -> Choice
fn is_identity(&self) -> Choice
Determines if this point represents the additive identity.
Source§fn to_curve(&self) -> DecafPoint
fn to_curve(&self) -> DecafPoint
Converts this affine point to its efficient representation.
Source§impl Debug for AffinePoint
impl Debug for AffinePoint
Source§impl Default for AffinePoint
impl Default for AffinePoint
Source§fn default() -> AffinePoint
fn default() -> AffinePoint
Returns the “default value” for a type. Read more
Source§impl From<&AffinePoint> for DecafPoint
impl From<&AffinePoint> for DecafPoint
Source§fn from(point: &DecafAffinePoint) -> Self
fn from(point: &DecafAffinePoint) -> Self
Converts to this type from the input type.
Source§impl From<&DecafPoint> for DecafAffinePoint
impl From<&DecafPoint> for DecafAffinePoint
Source§fn from(point: &DecafPoint) -> Self
fn from(point: &DecafPoint) -> Self
Converts to this type from the input type.
Source§impl From<AffinePoint> for DecafPoint
impl From<AffinePoint> for DecafPoint
Source§fn from(point: DecafAffinePoint) -> Self
fn from(point: DecafAffinePoint) -> Self
Converts to this type from the input type.
Source§impl From<DecafPoint> for DecafAffinePoint
impl From<DecafPoint> for DecafAffinePoint
Source§fn from(point: DecafPoint) -> Self
fn from(point: DecafPoint) -> Self
Converts to this type from the input type.
Source§impl From<NonIdentity<AffinePoint>> for AffinePoint
impl From<NonIdentity<AffinePoint>> for AffinePoint
Source§fn from(affine: NonIdentity<AffinePoint>) -> Self
fn from(affine: NonIdentity<AffinePoint>) -> Self
Converts to this type from the input type.
Source§impl Generate for AffinePoint
impl Generate for AffinePoint
Source§fn try_generate_from_rng<R: TryCryptoRng + ?Sized>(
rng: &mut R,
) -> Result<Self, R::Error>
fn try_generate_from_rng<R: TryCryptoRng + ?Sized>( rng: &mut R, ) -> Result<Self, R::Error>
Generate random key using the provided
TryCryptoRng. Read moreSource§fn generate_from_rng<R>(rng: &mut R) -> Self
fn generate_from_rng<R>(rng: &mut R) -> Self
Generate random key using the provided
CryptoRng.Source§impl GroupEncoding for AffinePoint
impl GroupEncoding for AffinePoint
Source§type Repr = Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>
type Repr = Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>
The encoding of group elements. Read more
Source§fn from_bytes(bytes: &Self::Repr) -> CtOption<Self>
fn from_bytes(bytes: &Self::Repr) -> CtOption<Self>
Attempts to deserialize a group element from its encoding.
Source§impl Mul<&Scalar<Decaf448>> for &AffinePoint
impl Mul<&Scalar<Decaf448>> for &AffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, scalar: &DecafScalar) -> DecafPoint
fn mul(self, scalar: &DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl<'b> Mul<&'b Scalar<Decaf448>> for AffinePoint
impl<'b> Mul<&'b Scalar<Decaf448>> for AffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &'b DecafScalar) -> DecafPoint
fn mul(self, rhs: &'b DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl<'a> Mul<Scalar<Decaf448>> for &'a AffinePoint
impl<'a> Mul<Scalar<Decaf448>> for &'a AffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: DecafScalar) -> DecafPoint
fn mul(self, rhs: DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl Mul<Scalar<Decaf448>> for AffinePoint
impl Mul<Scalar<Decaf448>> for AffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: DecafScalar) -> DecafPoint
fn mul(self, rhs: DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl MulVartime<&Scalar<Decaf448>> for &AffinePoint
impl MulVartime<&Scalar<Decaf448>> for &AffinePoint
Source§fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
Multiply
self by rhs in variable-time.Source§impl MulVartime<&Scalar<Decaf448>> for AffinePoint
impl MulVartime<&Scalar<Decaf448>> for AffinePoint
Source§fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
Multiply
self by rhs in variable-time.Source§impl MulVartime<Scalar<Decaf448>> for AffinePoint
impl MulVartime<Scalar<Decaf448>> for AffinePoint
Source§fn mul_vartime(self, scalar: DecafScalar) -> DecafPoint
fn mul_vartime(self, scalar: DecafScalar) -> DecafPoint
Multiply
self by rhs in variable-time.Source§impl Neg for AffinePoint
impl Neg for AffinePoint
Source§impl PartialEq for AffinePoint
impl PartialEq for AffinePoint
Source§impl Sub<&AffinePoint> for &DecafPoint
impl Sub<&AffinePoint> for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§impl<'b> Sub<&'b AffinePoint> for DecafPoint
impl<'b> Sub<&'b AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: &'b DecafAffinePoint) -> DecafPoint
fn sub(self, rhs: &'b DecafAffinePoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub<&DecafPoint> for &DecafAffinePoint
impl Sub<&DecafPoint> for &DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§impl<'b> Sub<&'b DecafPoint> for DecafAffinePoint
impl<'b> Sub<&'b DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: &'b DecafPoint) -> DecafPoint
fn sub(self, rhs: &'b DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'a> Sub<AffinePoint> for &'a DecafPoint
impl<'a> Sub<AffinePoint> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub<AffinePoint> for DecafPoint
impl Sub<AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'a> Sub<DecafPoint> for &'a DecafAffinePoint
impl<'a> Sub<DecafPoint> for &'a DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafPoint) -> DecafPoint
fn sub(self, rhs: DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub<DecafPoint> for DecafAffinePoint
impl Sub<DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafPoint) -> DecafPoint
fn sub(self, rhs: DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl SubAssign<&AffinePoint> for DecafPoint
impl SubAssign<&AffinePoint> for DecafPoint
Source§fn sub_assign(&mut self, other: &DecafAffinePoint)
fn sub_assign(&mut self, other: &DecafAffinePoint)
Performs the
-= operation. Read moreSource§impl SubAssign<&DecafPoint> for DecafAffinePoint
impl SubAssign<&DecafPoint> for DecafAffinePoint
Source§fn sub_assign(&mut self, rhs: &DecafPoint)
fn sub_assign(&mut self, rhs: &DecafPoint)
Performs the
-= operation. Read moreSource§impl SubAssign<AffinePoint> for DecafPoint
impl SubAssign<AffinePoint> for DecafPoint
Source§fn sub_assign(&mut self, rhs: DecafAffinePoint)
fn sub_assign(&mut self, rhs: DecafAffinePoint)
Performs the
-= operation. Read moreSource§impl SubAssign<DecafPoint> for DecafAffinePoint
impl SubAssign<DecafPoint> for DecafAffinePoint
Source§fn sub_assign(&mut self, rhs: DecafPoint)
fn sub_assign(&mut self, rhs: DecafPoint)
Performs the
-= operation. Read moreSource§impl TryFrom<AffinePoint> for NonIdentity<AffinePoint>
The constant-time alternative is available at NonIdentity::new().
impl TryFrom<AffinePoint> for NonIdentity<AffinePoint>
The constant-time alternative is available at NonIdentity::new().
impl Copy for AffinePoint
impl DefaultIsZeroes for AffinePoint
impl Eq for AffinePoint
Auto Trait Implementations§
impl Freeze for AffinePoint
impl RefUnwindSafe for AffinePoint
impl Send for AffinePoint
impl Sync for AffinePoint
impl Unpin for AffinePoint
impl UnsafeUnpin for AffinePoint
impl UnwindSafe for AffinePoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more