pub struct KeyGenParams {
pub algorithm: Algorithm,
pub seed: Option<Vec<u8>>,
pub key_size: Option<usize>,
}Expand description
Parameters for key generation
Fields§
§algorithm: AlgorithmAlgorithm to generate the key for
seed: Option<Vec<u8>>Optional seed materials (for deterministic generation)
key_size: Option<usize>Key size override (if algorithm supports multiple sizes)
Trait Implementations§
Source§impl Clone for KeyGenParams
impl Clone for KeyGenParams
Source§fn clone(&self) -> KeyGenParams
fn clone(&self) -> KeyGenParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyGenParams
impl RefUnwindSafe for KeyGenParams
impl Send for KeyGenParams
impl Sync for KeyGenParams
impl Unpin for KeyGenParams
impl UnwindSafe for KeyGenParams
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