[][src]Struct rpki::crypto::keys::PublicKey

pub struct PublicKey { /* fields omitted */ }

A public key.

Methods

impl PublicKey[src]

pub fn algorithm(&self) -> &PublicKeyFormat[src]

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

pub fn key_identifier(&self) -> Digest[src]

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

Verifies a signature using this public key.

impl PublicKey[src]

As SubjectPublicKeyInfo

Public keys are included in X.509 certificates as SubjectPublicKeyInfo structures. As these are contain the same information as PublicKey, it can be decoded from and encoded to such sequences.

pub fn decode<S: Source>(source: S) -> Result<Self, S::Err>[src]

pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>[src]

pub fn encode(self) -> impl Values[src]

pub fn encode_ref<'a>(&'a self) -> impl Values + 'a[src]

pub fn encode_subject_name<'a>(&'a self) -> impl Values + 'a[src]

pub fn to_subject_name(&self) -> Name[src]

Trait Implementations

impl PartialEq<PublicKey> for PublicKey[src]

impl Clone for PublicKey[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for PublicKey[src]

impl Debug for PublicKey[src]

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.