pub enum KeyType {
Curve25519,
EcP224,
EcP256,
EcP384,
EcP521,
Generic,
Rsa,
}
Expand description
The algorithm type of a key
Variants§
Curve25519
A Montgomery curve key over a prime field for the prime number 2^255-19
EcP224
An elliptic-curve key over a prime field for a prime of size 224 bit
EcP256
An elliptic-curve key over a prime field for a prime of size 256 bit
EcP384
An elliptic-curve key over a prime field for a prime of size 384 bit
EcP521
An elliptic-curve key over a prime field for a prime of size 521 bit
Generic
A generic key used for block ciphers
Rsa
An RSA key
Trait Implementations§
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
source§impl IntoEnumIterator for KeyType
impl IntoEnumIterator for KeyType
type Iterator = KeyTypeIter
fn iter() -> KeyTypeIter ⓘ
source§impl Ord for KeyType
impl Ord for KeyType
source§impl PartialOrd for KeyType
impl PartialOrd for KeyType
impl Copy for KeyType
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)