pub enum KeyType {
Ec,
Oct,
Ibc,
Okp,
}Expand description
密钥类型 (kty) 参数
规范依据:GM/T 0125.4—2022 第 5.1 节 (kty 参数)
Variants§
Ec
椭圆曲线密钥 (SM2 / P-256 / P-384)
Oct
对称密钥 (SM4 / SM3-HMAC)
Ibc
标识密码密钥 (SM9)
Okp
八位字节密钥对 (Ed25519) (RFC 8037)
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more