[][src]Struct x448::PublicKey

pub struct PublicKey(_);

A PublicKey is a point on Curve448.

Implementations

impl PublicKey[src]

pub fn from_bytes(bytes: &[u8]) -> Option<PublicKey>[src]

Converts a bytes slice into a Public key Returns None if:

  • The length of the slice is not 56
  • The point is a low order point

pub fn from_bytes_unchecked(bytes: &[u8]) -> Option<PublicKey>[src]

Converts a bytes slice into a Public key Returns None if:

  • The length of the slice is not 56

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

Converts a public key into a byte slice

Trait Implementations

impl<'_> From<&'_ Secret> for PublicKey[src]

Given a Secret Key, compute the corresponding public key using the generator specified in RFC7748 XXX: Waiting for upstream PR to use pre-computation

Auto Trait Implementations

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, 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.