#[non_exhaustive]pub enum KeyParams {
Rsa(RsaParams),
Ec(EcParams),
Symmetric(SymmetricParams),
Okp(OkpParams),
}Expand description
Key-type-specific parameters.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rsa(RsaParams)
RSA key parameters.
Ec(EcParams)
Elliptic Curve key parameters.
Symmetric(SymmetricParams)
Symmetric key parameters.
Okp(OkpParams)
Octet Key Pair parameters.
Implementations§
Source§impl KeyParams
impl KeyParams
Sourcepub fn is_public_key_only(&self) -> bool
pub fn is_public_key_only(&self) -> bool
Returns true if this contains only public key parameters.
Sourcepub fn has_private_key(&self) -> bool
pub fn has_private_key(&self) -> bool
Returns true if this contains private key parameters.
Trait Implementations§
Source§impl From<SymmetricParams> for KeyParams
impl From<SymmetricParams> for KeyParams
Source§fn from(p: SymmetricParams) -> Self
fn from(p: SymmetricParams) -> Self
Converts to this type from the input type.
impl Eq for KeyParams
impl StructuralPartialEq for KeyParams
Auto Trait Implementations§
impl Freeze for KeyParams
impl RefUnwindSafe for KeyParams
impl Send for KeyParams
impl Sync for KeyParams
impl Unpin for KeyParams
impl UnsafeUnpin for KeyParams
impl UnwindSafe for KeyParams
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§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
Compare self to
key and return true if they are equal.