[−][src]Struct rpki::crypto::keys::PublicKey
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]
&self,
message: &[u8],
signature: &Signature
) -> Result<(), VerificationError>
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(&self) -> 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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,