pub struct RustCryptoPoint<E: CurveArithmetic>(pub E::ProjectivePoint);
Available on crate feature
rust-crypto
only.Expand description
Point wrapper
Tuple Fields§
§0: E::ProjectivePoint
Trait Implementations§
Source§impl<E: CurveArithmetic> Additive for RustCryptoPoint<E>
impl<E: CurveArithmetic> Additive for RustCryptoPoint<E>
Source§impl<E> Clone for RustCryptoPoint<E>where
E: CurveArithmetic,
impl<E> Clone for RustCryptoPoint<E>where
E: CurveArithmetic,
Source§impl<E> CompressedEncoding for RustCryptoPoint<E>where
E: CurveArithmetic,
E::AffinePoint: ToEncodedPoint<E> + From<E::ProjectivePoint>,
FieldBytesSize<E>: ModulusSize,
impl<E> CompressedEncoding for RustCryptoPoint<E>where
E: CurveArithmetic,
E::AffinePoint: ToEncodedPoint<E> + From<E::ProjectivePoint>,
FieldBytesSize<E>: ModulusSize,
Source§type Bytes = GenericArray<u8, <<E as Curve>::FieldBytesSize as ModulusSize>::CompressedPointSize>
type Bytes = GenericArray<u8, <<E as Curve>::FieldBytesSize as ModulusSize>::CompressedPointSize>
Byte array that fits the whole compressed point representation
Source§fn to_bytes_compressed(&self) -> Self::Bytes
fn to_bytes_compressed(&self) -> Self::Bytes
Encodes the point as bytes in compressed form
Source§impl<E> ConditionallySelectable for RustCryptoPoint<E>
impl<E> ConditionallySelectable for RustCryptoPoint<E>
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<E> ConstantTimeEq for RustCryptoPoint<E>
impl<E> ConstantTimeEq for RustCryptoPoint<E>
Source§impl<E> Decode for RustCryptoPoint<E>where
E: CurveArithmetic,
E::AffinePoint: FromEncodedPoint<E> + Into<E::ProjectivePoint>,
FieldBytesSize<E>: ModulusSize,
impl<E> Decode for RustCryptoPoint<E>where
E: CurveArithmetic,
E::AffinePoint: FromEncodedPoint<E> + Into<E::ProjectivePoint>,
FieldBytesSize<E>: ModulusSize,
Source§impl<E> Default for RustCryptoPoint<E>
impl<E> Default for RustCryptoPoint<E>
Source§impl<E: CurveArithmetic> From<CurveGenerator> for RustCryptoPoint<E>
impl<E: CurveArithmetic> From<CurveGenerator> for RustCryptoPoint<E>
Source§fn from(_: CurveGenerator) -> Self
fn from(_: CurveGenerator) -> Self
Converts to this type from the input type.
Source§impl<E> Hash for RustCryptoPoint<E>
impl<E> Hash for RustCryptoPoint<E>
Source§impl<E> Multiplicative<RustCryptoPoint<E>> for RustCryptoScalar<E>where
E: CurveArithmetic,
for<'a> &'a E::ProjectivePoint: Mul<&'a E::Scalar, Output = E::ProjectivePoint>,
impl<E> Multiplicative<RustCryptoPoint<E>> for RustCryptoScalar<E>where
E: CurveArithmetic,
for<'a> &'a E::ProjectivePoint: Mul<&'a E::Scalar, Output = E::ProjectivePoint>,
Source§type Output = RustCryptoPoint<E>
type Output = RustCryptoPoint<E>
Type of multiplication output
Source§fn mul(a: &Self, b: &RustCryptoPoint<E>) -> Self::Output
fn mul(a: &Self, b: &RustCryptoPoint<E>) -> Self::Output
Computes
a * b
Source§impl<E: CurveArithmetic> OnCurve for RustCryptoPoint<E>
impl<E: CurveArithmetic> OnCurve for RustCryptoPoint<E>
Source§fn is_on_curve(&self) -> Choice
fn is_on_curve(&self) -> Choice
Checks whether the point is on curve
Source§impl<E> Ord for RustCryptoPoint<E>
impl<E> Ord for RustCryptoPoint<E>
Source§impl<E> PartialEq for RustCryptoPoint<E>
impl<E> PartialEq for RustCryptoPoint<E>
Source§impl<E> PartialOrd for RustCryptoPoint<E>
impl<E> PartialOrd for RustCryptoPoint<E>
Source§impl<E> SmallFactor for RustCryptoPoint<E>
impl<E> SmallFactor for RustCryptoPoint<E>
Source§fn is_torsion_free(&self) -> Choice
fn is_torsion_free(&self) -> Choice
Checks whether a point has no small factor
Source§impl<E> UncompressedEncoding for RustCryptoPoint<E>where
E: CurveArithmetic,
E::AffinePoint: ToEncodedPoint<E> + From<E::ProjectivePoint>,
FieldBytesSize<E>: ModulusSize,
impl<E> UncompressedEncoding for RustCryptoPoint<E>where
E: CurveArithmetic,
E::AffinePoint: ToEncodedPoint<E> + From<E::ProjectivePoint>,
FieldBytesSize<E>: ModulusSize,
Source§type Bytes = GenericArray<u8, <<E as Curve>::FieldBytesSize as ModulusSize>::UncompressedPointSize>
type Bytes = GenericArray<u8, <<E as Curve>::FieldBytesSize as ModulusSize>::UncompressedPointSize>
Byte array that fits the whole uncompressed point representation
Source§fn to_bytes_uncompressed(&self) -> Self::Bytes
fn to_bytes_uncompressed(&self) -> Self::Bytes
Encodes the point as bytes in uncompressed form Read more
Source§impl<E: CurveArithmetic> Zero for RustCryptoPoint<E>
impl<E: CurveArithmetic> Zero for RustCryptoPoint<E>
Source§impl<E> Zeroize for RustCryptoPoint<E>
impl<E> Zeroize for RustCryptoPoint<E>
impl<E> Copy for RustCryptoPoint<E>
impl<E> Eq for RustCryptoPoint<E>
Auto Trait Implementations§
impl<E> Freeze for RustCryptoPoint<E>
impl<E> RefUnwindSafe for RustCryptoPoint<E>
impl<E> Send for RustCryptoPoint<E>
impl<E> Sync for RustCryptoPoint<E>
impl<E> Unpin for RustCryptoPoint<E>
impl<E> UnwindSafe for RustCryptoPoint<E>
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