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§
source§impl<'a> PartialEq for PublicKey<'a>
impl<'a> PartialEq for PublicKey<'a>
impl<'a> Eq for PublicKey<'a>
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§
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