pub enum KeyType {
Ed25519,
Ed25519Nkey,
Rsa2048,
EcdsaP256,
EcdsaP384,
EcdsaP521,
MlDsa44,
MlDsa65,
MlDsa87,
MlKem512,
MlKem768,
MlKem1024,
}Expand description
Asymmetric key type used by key creation, import, signing, and minting.
Mirrors the wire basil.broker.v1.KeyType enum one-for-one, including the
post-quantum families. The classical types (ed25519..ecdsa-p256) are
produced/imported in place by the backend; the post-quantum types
(ml-dsa-* signing, ml-kem-* sealing) are provisioned through the
local-software crypto provider against an operator-declared software-custody
catalog entry: a client names the type but never the custody/storage.
Variants§
Ed25519
Raw Ed25519 signing key.
Ed25519Nkey
Ed25519 in the NATS NKey envelope.
Rsa2048
RSA-2048.
EcdsaP256
ECDSA P-256.
EcdsaP384
ECDSA P-384.
EcdsaP521
ECDSA P-521.
MlDsa44
ML-DSA (FIPS 204) post-quantum signatures, parameter set 44.
MlDsa65
ML-DSA parameter set 65.
MlDsa87
ML-DSA parameter set 87.
MlKem512
ML-KEM (FIPS 203) post-quantum key encapsulation, parameter set 512.
MlKem768
ML-KEM parameter set 768.
MlKem1024
ML-KEM parameter set 1024.
Trait Implementations§
impl Copy for KeyType
Source§impl<'de> Deserialize<'de> for KeyType
impl<'de> Deserialize<'de> for KeyType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnsafeUnpin for KeyType
impl UnwindSafe for KeyType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request