Enum x509_parser::public_key::PublicKey
source · [−]pub enum PublicKey<'a> {
RSA(RSAPublicKey<'a>),
EC(ECPoint<'a>),
DSA(&'a [u8]),
GostR3410(&'a [u8]),
GostR3410_2012(&'a [u8]),
Unknown(&'a [u8]),
}
Expand description
Public Key value
Variants
RSA(RSAPublicKey<'a>)
EC(ECPoint<'a>)
DSA(&'a [u8])
DSAPublicKey ::= INTEGER – public key, Y (RFC 3279)
GostR3410(&'a [u8])
GostR3410-94-PublicKey ::= OCTET STRING – public key, Y (RFC 4491)
GostR3410_2012(&'a [u8])
GostR3410-2012-256-PublicKey ::= OCTET STRING (64), GostR3410-2012-512-PublicKey ::= OCTET STRING (128). (RFC 4491-bis)
Unknown(&'a [u8])
Implementations
Trait Implementations
impl<'a> StructuralPartialEq for PublicKey<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PublicKey<'a>
impl<'a> Send for PublicKey<'a>
impl<'a> Sync for PublicKey<'a>
impl<'a> Unpin for PublicKey<'a>
impl<'a> UnwindSafe for PublicKey<'a>
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more