#[non_exhaustive]pub enum ParsedPublicKeyFormat {
X509,
Uncompressed,
Compressed,
Hybrid,
Raw,
Unknown,
}
Expand description
The format of a parsed public key.
This is used to distinguish between different types of public key formats supported by aws-lc-rs.
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.
X509
The key is in an X.509 SubjectPublicKeyInfo format.
Uncompressed
The key is in an uncompressed form (X9.62).
Compressed
The key is in a compressed form (SEC 1: Elliptic Curve Cryptography, Version 2.0).
Hybrid
The key is in a hybrid form (SEC 1: Elliptic Curve Cryptography, Version 2.0).
Raw
The key is in a raw form. (X25519 only)
Unknown
The key is in an unknown format.
Trait Implementations§
Source§impl Clone for ParsedPublicKeyFormat
impl Clone for ParsedPublicKeyFormat
Source§fn clone(&self) -> ParsedPublicKeyFormat
fn clone(&self) -> ParsedPublicKeyFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 ParsedPublicKeyFormat
impl Debug for ParsedPublicKeyFormat
Source§impl PartialEq for ParsedPublicKeyFormat
impl PartialEq for ParsedPublicKeyFormat
impl Copy for ParsedPublicKeyFormat
impl Eq for ParsedPublicKeyFormat
impl StructuralPartialEq for ParsedPublicKeyFormat
Auto Trait Implementations§
impl Freeze for ParsedPublicKeyFormat
impl RefUnwindSafe for ParsedPublicKeyFormat
impl Send for ParsedPublicKeyFormat
impl Sync for ParsedPublicKeyFormat
impl Unpin for ParsedPublicKeyFormat
impl UnwindSafe for ParsedPublicKeyFormat
Blanket Implementations§
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