pub struct TinyCurve16;Expand description
An elliptic curve with a 16-bit order.
Trait Implementations§
Source§impl Clone for TinyCurve16
impl Clone for TinyCurve16
Source§fn clone(&self) -> TinyCurve16
fn clone(&self) -> TinyCurve16
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 TinyCurve16
impl Curve for TinyCurve16
Source§impl CurveArithmetic for TinyCurve16
impl CurveArithmetic for TinyCurve16
Source§type AffinePoint = AffinePoint<TinyCurve16>
type AffinePoint = AffinePoint<TinyCurve16>
Elliptic curve point in affine coordinates.
Source§type ProjectivePoint = ProjectivePoint<TinyCurve16>
type ProjectivePoint = ProjectivePoint<TinyCurve16>
Elliptic curve point in projective coordinates. Read more
Source§impl Debug for TinyCurve16
impl Debug for TinyCurve16
Source§impl Default for TinyCurve16
impl Default for TinyCurve16
Source§fn default() -> TinyCurve16
fn default() -> TinyCurve16
Returns the “default value” for a type. Read more
Source§impl FieldBytesEncoding<TinyCurve16> for <TinyCurve16 as Curve>::Uint
impl FieldBytesEncoding<TinyCurve16> for <TinyCurve16 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 TinyCurve16
impl Ord for TinyCurve16
Source§fn cmp(&self, other: &TinyCurve16) -> Ordering
fn cmp(&self, other: &TinyCurve16) -> 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 TinyCurve16
impl PartialEq for TinyCurve16
Source§impl PartialOrd for TinyCurve16
impl PartialOrd for TinyCurve16
Source§impl PointCompression for TinyCurve16
impl PointCompression for TinyCurve16
Source§const COMPRESS_POINTS: bool = true
const COMPRESS_POINTS: bool = true
Should point compression be applied by default?
Source§impl PrimeCurveParams for TinyCurve16
impl PrimeCurveParams for TinyCurve16
Source§const EQUATION_A: Self::FieldElement = {transmute(0xffa4): <curve16::TinyCurve16 as primeorder::PrimeCurveParams>::FieldElement}
const EQUATION_A: Self::FieldElement = {transmute(0xffa4): <curve16::TinyCurve16 as primeorder::PrimeCurveParams>::FieldElement}
Coefficient
a in the curve equation.Source§const EQUATION_B: Self::FieldElement = {transmute(0x0007): <curve16::TinyCurve16 as primeorder::PrimeCurveParams>::FieldElement}
const EQUATION_B: Self::FieldElement = {transmute(0x0007): <curve16::TinyCurve16 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<u16, FIELD_MODULUS>
type FieldElement = FieldElement<u16, 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 TinyCurve16
impl Eq for TinyCurve16
impl PrimeCurve for TinyCurve16
impl StructuralPartialEq for TinyCurve16
Auto Trait Implementations§
impl Freeze for TinyCurve16
impl RefUnwindSafe for TinyCurve16
impl Send for TinyCurve16
impl Sync for TinyCurve16
impl Unpin for TinyCurve16
impl UnwindSafe for TinyCurve16
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.