[][src]Struct elliptic_curve::weierstrass::point::UncompressedPoint

pub struct UncompressedPoint<C: Curve> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
{ /* fields omitted */ }
This is supported on feature="weierstrass" only.

Uncompressed elliptic curve points serialized according to the Elliptic-Curve-Point-to-Octet-String algorithm.

See section 2.3.3 of SEC 1: Elliptic Curve Cryptography (Version 2.0):

https://www.secg.org/sec1-v2.pdf

Implementations

impl<C> UncompressedPoint<C> where
    C: Curve,
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

pub fn from_affine_coords(x: &ElementBytes<C>, y: &ElementBytes<C>) -> Self[src]

This is supported on feature="weierstrass" only.

Serialize an elliptic curve point from its affine coordinates

pub fn from_bytes<B>(into_bytes: B) -> Option<Self> where
    B: Into<GenericArray<u8, UncompressedPointSize<C>>>, 
[src]

This is supported on feature="weierstrass" only.

Create a new uncompressed elliptic curve point

pub fn as_bytes(&self) -> &[u8][src]

This is supported on feature="weierstrass" only.

Borrow byte slice containing uncompressed curve point

pub fn into_bytes(self) -> GenericArray<u8, UncompressedPointSize<C>>[src]

This is supported on feature="weierstrass" only.

Convert public key into owned byte array

Trait Implementations

impl<C> AsRef<[u8]> for UncompressedPoint<C> where
    C: Curve,
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C> Clone for UncompressedPoint<C> where
    C: Curve,
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C> Copy for UncompressedPoint<C> where
    C: Curve,
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>,
    <UncompressedPointSize<C> as ArrayLength<u8>>::ArrayType: Copy
[src]

impl<C: Eq + Curve> Eq for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C> From<UncompressedPoint<C>> for PublicKey<C> where
    C: Curve,
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    CompressedPointSize<C>: ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C: Hash + Curve> Hash for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C: Ord + Curve> Ord for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C: PartialEq + Curve> PartialEq<UncompressedPoint<C>> for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C: PartialOrd + Curve> PartialOrd<UncompressedPoint<C>> for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C: Curve> StructuralEq for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C: Curve> StructuralPartialEq for UncompressedPoint<C> where
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

impl<C> Zeroize for UncompressedPoint<C> where
    C: Curve,
    C::ElementSize: Add<U1>,
    <C::ElementSize as Add>::Output: Add<U1>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for UncompressedPoint<C> where
    <<<<C as Curve>::ElementSize as Add<<C as Curve>::ElementSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
    <C as Curve>::ElementSize: Add<<C as Curve>::ElementSize>, 

impl<C> Send for UncompressedPoint<C> where
    <C as Curve>::ElementSize: Add<<C as Curve>::ElementSize>, 

impl<C> Sync for UncompressedPoint<C> where
    <C as Curve>::ElementSize: Add<<C as Curve>::ElementSize>, 

impl<C> Unpin for UncompressedPoint<C> where
    <<<<C as Curve>::ElementSize as Add<<C as Curve>::ElementSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: Unpin,
    <C as Curve>::ElementSize: Add<<C as Curve>::ElementSize>, 

impl<C> UnwindSafe for UncompressedPoint<C> where
    <<<<C as Curve>::ElementSize as Add<<C as Curve>::ElementSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: UnwindSafe,
    <C as Curve>::ElementSize: Add<<C as Curve>::ElementSize>, 

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]