#[non_exhaustive]pub enum X509PublicKeyInfo {
Rsa {
modulus: Vec<u8>,
exponent: Vec<u8>,
},
Ec {
curve_oid: String,
public_key: Vec<u8>,
},
Unsupported {
algorithm_oid: String,
},
}Expand description
Public key material extracted from certificate SubjectPublicKeyInfo.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rsa
RSA public key (modulus, exponent).
Fields
Ec
EC public key (curve_oid, encoded point bytes).
Fields
Unsupported
Public key algorithm is present but not parsed into a concrete key type.
Trait Implementations§
Source§impl Clone for X509PublicKeyInfo
impl Clone for X509PublicKeyInfo
Source§fn clone(&self) -> X509PublicKeyInfo
fn clone(&self) -> X509PublicKeyInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for X509PublicKeyInfo
impl Debug for X509PublicKeyInfo
impl Eq for X509PublicKeyInfo
Source§impl PartialEq for X509PublicKeyInfo
impl PartialEq for X509PublicKeyInfo
impl StructuralPartialEq for X509PublicKeyInfo
Auto Trait Implementations§
impl Freeze for X509PublicKeyInfo
impl RefUnwindSafe for X509PublicKeyInfo
impl Send for X509PublicKeyInfo
impl Sync for X509PublicKeyInfo
impl Unpin for X509PublicKeyInfo
impl UnsafeUnpin for X509PublicKeyInfo
impl UnwindSafe for X509PublicKeyInfo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more