pub enum JwkCrypto {
Okp {
curve: OkpCurve,
x: SmallVec<u8, 32>,
d: Option<SmallVec<u8, 32>>,
},
Ec {
curve: EcCurve,
x: SmallVec<u8, 32>,
y: SmallVec<u8, 32>,
d: Option<SmallVec<u8, 32>>,
},
Oct {
key: SmallVec<u8, 32>,
},
Rsa {
n: SmallVec<u8, 0>,
e: SmallVec<u8, 4>,
},
Akp {
pub_key: SmallVec<u8, 0>,
private_key: Option<SmallVec<u8, 0>>,
},
}Variants§
Okp
EdDSA
Ec
ECDSA
Oct
Static keys
Rsa
RSA public key
Akp
ML-DSA public key (draft “AKP” key type)
pub holds the encoded public key and the optional priv holds the 32-byte seed the
signing key was generated from.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JwkCrypto
impl<'de> Deserialize<'de> for JwkCrypto
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JwkCrypto
impl RefUnwindSafe for JwkCrypto
impl Send for JwkCrypto
impl Sync for JwkCrypto
impl Unpin for JwkCrypto
impl UnsafeUnpin for JwkCrypto
impl UnwindSafe for JwkCrypto
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