[][src]Struct nss::ec::PublicKey

pub struct PublicKey {
    curve: Curve,
    wrapped: PK11PublicKey,
}

Fields

curve: Curvewrapped: PK11PublicKey

Implementations

impl PublicKey[src]

pub(crate) fn from(curve: Curve, key: PK11PublicKey) -> Self[src]

pub fn curve(&self) -> Curve[src]

pub fn verify(
    &self,
    message: &[u8],
    signature: &[u8],
    hash_algorithm: HashAlgorithm
) -> Result<()>
[src]

ECDSA verify operation

pub fn to_bytes(&self) -> Result<Vec<u8>>[src]

pub fn from_bytes(curve: Curve, bytes: &[u8]) -> Result<PublicKey>[src]

Trait Implementations

impl Deref for PublicKey[src]

type Target = PK11PublicKey

The resulting type after dereferencing.

Auto Trait Implementations

impl RefUnwindSafe for PublicKey

impl Send for PublicKey

impl !Sync for PublicKey

impl Unpin for PublicKey

impl UnwindSafe for PublicKey

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.