pub enum KeyParams {
Rsa {
size: RsaKeyBits,
scheme: RsaScheme,
pub_exponent: RsaExponent,
},
Ecc {
curve: EccCurve,
scheme: EccScheme,
},
}Expand description
Parameters for the kinds of keys supported by the context
Variants
Rsa
Fields
size: RsaKeyBitsSize of key in bits
Can only be one of: 1024, 2048, 3072 or 4096
scheme: RsaSchemeAsymmetric scheme to be used with the key
pub_exponent: RsaExponentPublic exponent of the key
If set to 0, it will default to 2^16 - 1
Ecc
Fields
curve: EccCurveCurve that the key will be based on
scheme: EccSchemeAsymmetric scheme to be used with the key
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyParams
impl Send for KeyParams
impl Sync for KeyParams
impl Unpin for KeyParams
impl UnwindSafe for KeyParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more