[−][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) -> KeyIdentifier
[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]
pub fn to_info_bytes(&self) -> Bytes
[src]
Returns a bytes values of the encoded the subjectPublicKeyInfo.
Trait Implementations
impl Clone for PublicKey
[src]
impl Eq for PublicKey
[src]
impl PartialEq<PublicKey> for PublicKey
[src]
impl Debug for PublicKey
[src]
Auto Trait Implementations
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
impl RefUnwindSafe for PublicKey
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,