pub struct TinyCurve64;Expand description
An elliptic curve with a 64-bit order.
Trait Implementations§
Source§impl AssociatedOid for TinyCurve64
Available on crate feature pkcs8 only.
impl AssociatedOid for TinyCurve64
Available on crate feature
pkcs8 only.Source§const OID: ObjectIdentifier
const OID: ObjectIdentifier
The OID associated with this type.
Source§impl Clone for TinyCurve64
impl Clone for TinyCurve64
Source§fn clone(&self) -> TinyCurve64
fn clone(&self) -> TinyCurve64
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 Curve for TinyCurve64
impl Curve for TinyCurve64
Source§impl CurveArithmetic for TinyCurve64
impl CurveArithmetic for TinyCurve64
Source§type AffinePoint = AffinePoint<TinyCurve64>
type AffinePoint = AffinePoint<TinyCurve64>
Elliptic curve point in affine coordinates.
Source§type ProjectivePoint = ProjectivePoint<TinyCurve64>
type ProjectivePoint = ProjectivePoint<TinyCurve64>
Elliptic curve point in projective coordinates. Read more
Source§impl Debug for TinyCurve64
impl Debug for TinyCurve64
Source§impl Default for TinyCurve64
impl Default for TinyCurve64
Source§fn default() -> TinyCurve64
fn default() -> TinyCurve64
Returns the “default value” for a type. Read more
Source§impl DigestPrimitive for TinyCurve64
Available on crate feature ecdsa only.
impl DigestPrimitive for TinyCurve64
Available on crate feature
ecdsa only.Source§impl FieldBytesEncoding<TinyCurve64> for <TinyCurve64 as Curve>::Uint
impl FieldBytesEncoding<TinyCurve64> for <TinyCurve64 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 TinyCurve64
impl Ord for TinyCurve64
Source§fn cmp(&self, other: &TinyCurve64) -> Ordering
fn cmp(&self, other: &TinyCurve64) -> 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 TinyCurve64
impl PartialEq for TinyCurve64
Source§impl PartialOrd for TinyCurve64
impl PartialOrd for TinyCurve64
Source§impl PointCompression for TinyCurve64
impl PointCompression for TinyCurve64
Source§const COMPRESS_POINTS: bool = true
const COMPRESS_POINTS: bool = true
Should point compression be applied by default?
Source§impl PrimeCurveParams for TinyCurve64
impl PrimeCurveParams for TinyCurve64
Source§const EQUATION_A: Self::FieldElement = {transmute(0xfffffffffffffc7c): <curve64::TinyCurve64 as primeorder::PrimeCurveParams>::FieldElement}
const EQUATION_A: Self::FieldElement = {transmute(0xfffffffffffffc7c): <curve64::TinyCurve64 as primeorder::PrimeCurveParams>::FieldElement}
Coefficient
a in the curve equation.Source§const EQUATION_B: Self::FieldElement = {transmute(0x0000000000000006): <curve64::TinyCurve64 as primeorder::PrimeCurveParams>::FieldElement}
const EQUATION_B: Self::FieldElement = {transmute(0x0000000000000006): <curve64::TinyCurve64 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<u64, FIELD_MODULUS>
type FieldElement = FieldElement<u64, FIELD_MODULUS>
Base field element type.
Source§type PointArithmetic = EquationAIsMinusThree
type PointArithmetic = EquationAIsMinusThree
Point arithmetic implementation, might be optimized for this specific curve
Source§impl VerifyPrimitive<TinyCurve64> for AffinePoint<TinyCurve64>
Available on crate feature ecdsa only.
impl VerifyPrimitive<TinyCurve64> for AffinePoint<TinyCurve64>
Available on crate feature
ecdsa only.Source§fn verify_prehashed(
&self,
z: &GenericArray<u8, <C as Curve>::FieldBytesSize>,
sig: &Signature<C>,
) -> Result<(), Error>
fn verify_prehashed( &self, z: &GenericArray<u8, <C as Curve>::FieldBytesSize>, sig: &Signature<C>, ) -> Result<(), Error>
Verify the prehashed message against the provided ECDSA signature. Read more
impl Copy for TinyCurve64
impl Eq for TinyCurve64
impl PrimeCurve for TinyCurve64
impl StructuralPartialEq for TinyCurve64
Auto Trait Implementations§
impl Freeze for TinyCurve64
impl RefUnwindSafe for TinyCurve64
impl Send for TinyCurve64
impl Sync for TinyCurve64
impl Unpin for TinyCurve64
impl UnwindSafe for TinyCurve64
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<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
Source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
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.