pub enum PeerKey {
Ec(PeerCurve),
Rsa(u16),
Ed25519,
MlDsa(MlDsaParameterSet),
Unknown,
}Expand description
A bounded public-key descriptor, carrying no key bytes.
Variants§
Ec(PeerCurve)
An EC key on the named curve.
Rsa(u16)
An RSA key’s actual modulus bit length.
Ed25519
An Ed25519 key.
MlDsa(MlDsaParameterSet)
A pure ML-DSA key.
Unknown
An unsupported algorithm or parameter OID; input bytes are omitted.
Trait Implementations§
impl Copy for PeerKey
impl Eq for PeerKey
impl StructuralPartialEq for PeerKey
Auto Trait Implementations§
impl Freeze for PeerKey
impl RefUnwindSafe for PeerKey
impl Send for PeerKey
impl Sync for PeerKey
impl Unpin for PeerKey
impl UnsafeUnpin for PeerKey
impl UnwindSafe for PeerKey
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