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
§
pub_exponent: RsaExponentPublic exponent of the key
If set to 0, it will default to 2^16 - 1.
(Note that the default value for RsaExponent is 0)
Ecc
Trait Implementations§
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<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