pub struct TinyCurve32;Expand description
An elliptic curve with a 32-bit order.
Trait Implementations§
Source§impl Clone for TinyCurve32
impl Clone for TinyCurve32
Source§fn clone(&self) -> TinyCurve32
fn clone(&self) -> TinyCurve32
Returns a copy 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 Curve for TinyCurve32
impl Curve for TinyCurve32
Source§impl CurveArithmetic for TinyCurve32
impl CurveArithmetic for TinyCurve32
Source§type AffinePoint = AffinePoint<TinyCurve32>
type AffinePoint = AffinePoint<TinyCurve32>
Elliptic curve point in affine coordinates.
Source§type ProjectivePoint = ProjectivePoint<TinyCurve32>
type ProjectivePoint = ProjectivePoint<TinyCurve32>
Elliptic curve point in projective coordinates. Read more
Source§impl Debug for TinyCurve32
impl Debug for TinyCurve32
Source§impl Default for TinyCurve32
impl Default for TinyCurve32
Source§fn default() -> TinyCurve32
fn default() -> TinyCurve32
Returns the “default value” for a type. Read more
Source§impl FieldBytesEncoding<TinyCurve32> for <TinyCurve32 as Curve>::Uint
impl FieldBytesEncoding<TinyCurve32> for <TinyCurve32 as Curve>::Uint
Source§fn decode_field_bytes(
field_bytes: &GenericArray<u8, <C as Curve>::FieldBytesSize>,
) -> Self
fn decode_field_bytes( field_bytes: &GenericArray<u8, <C as Curve>::FieldBytesSize>, ) -> Self
Decode unsigned integer from serialized field element. Read more
Source§fn encode_field_bytes(&self) -> GenericArray<u8, <C as Curve>::FieldBytesSize>
fn encode_field_bytes(&self) -> GenericArray<u8, <C as Curve>::FieldBytesSize>
Encode unsigned integer into serialized field element. Read more
Source§impl Ord for TinyCurve32
impl Ord for TinyCurve32
Source§fn cmp(&self, other: &TinyCurve32) -> Ordering
fn cmp(&self, other: &TinyCurve32) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TinyCurve32
impl PartialEq for TinyCurve32
Source§impl PartialOrd for TinyCurve32
impl PartialOrd for TinyCurve32
Source§impl PointCompression for TinyCurve32
impl PointCompression for TinyCurve32
Source§const COMPRESS_POINTS: bool = true
const COMPRESS_POINTS: bool = true
Should point compression be applied by default?
Source§impl PrimeCurveParams for TinyCurve32
impl PrimeCurveParams for TinyCurve32
Source§const EQUATION_A: Self::FieldElement = {transmute(0xffffff64): <curve32::TinyCurve32 as primeorder::PrimeCurveParams>::FieldElement}
const EQUATION_A: Self::FieldElement = {transmute(0xffffff64): <curve32::TinyCurve32 as primeorder::PrimeCurveParams>::FieldElement}
Coefficient
a in the curve equation.Source§const EQUATION_B: Self::FieldElement = {transmute(0x00000008): <curve32::TinyCurve32 as primeorder::PrimeCurveParams>::FieldElement}
const EQUATION_B: Self::FieldElement = {transmute(0x00000008): <curve32::TinyCurve32 as primeorder::PrimeCurveParams>::FieldElement}
Coefficient
b in the curve equation.Source§const GENERATOR: (Self::FieldElement, Self::FieldElement)
const GENERATOR: (Self::FieldElement, Self::FieldElement)
Generator point’s affine coordinates: (x, y).
Source§type FieldElement = FieldElement<u32, FIELD_MODULUS>
type FieldElement = FieldElement<u32, FIELD_MODULUS>
Base field element type.
Source§type PointArithmetic = EquationAIsMinusThree
type PointArithmetic = EquationAIsMinusThree
Point arithmetic implementation, might be optimized for this specific curve
impl Copy for TinyCurve32
impl Eq for TinyCurve32
impl PrimeCurve for TinyCurve32
impl StructuralPartialEq for TinyCurve32
Auto Trait Implementations§
impl Freeze for TinyCurve32
impl RefUnwindSafe for TinyCurve32
impl Send for TinyCurve32
impl Sync for TinyCurve32
impl Unpin for TinyCurve32
impl UnwindSafe for TinyCurve32
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> ValidatePublicKey for Cwhere
C: CurveArithmetic,
<C as CurveArithmetic>::AffinePoint: FromEncodedPoint<C> + ToEncodedPoint<C>,
<C as Curve>::FieldBytesSize: ModulusSize,
impl<C> ValidatePublicKey for Cwhere
C: CurveArithmetic,
<C as CurveArithmetic>::AffinePoint: FromEncodedPoint<C> + ToEncodedPoint<C>,
<C as Curve>::FieldBytesSize: ModulusSize,
Source§fn validate_public_key(
secret_key: &SecretKey<C>,
public_key: &EncodedPoint<<C as Curve>::FieldBytesSize>,
) -> Result<(), Error>
fn validate_public_key( secret_key: &SecretKey<C>, public_key: &EncodedPoint<<C as Curve>::FieldBytesSize>, ) -> Result<(), Error>
Validate that the given
EncodedPoint is a valid public key for the
provided secret value.