pub struct GenerateKey {
pub algorithm: String,
pub object_id: u16,
pub label: String,
pub domains: Vec<u8>,
pub capabilities: Vec<String>,
}Expand description
What Hsm::generate creates.
Fields§
§algorithm: StringAlgorithm: "ec-p256", "ec-p384", "ec-p521", "ec-k256" or
"ed25519". The box refuses RSA, whose generation can take minutes.
object_id: u16Object ID to store the key under; 0 lets the HSM pick one.
label: StringLabel.
domains: Vec<u8>Domains (1-16); empty means domain 1.
capabilities: Vec<String>Capabilities; empty means the box’s defaults for the algorithm.
Implementations§
Trait Implementations§
Source§impl Clone for GenerateKey
impl Clone for GenerateKey
Source§impl Debug for GenerateKey
impl Debug for GenerateKey
impl Eq for GenerateKey
Source§impl PartialEq for GenerateKey
impl PartialEq for GenerateKey
impl StructuralPartialEq for GenerateKey
Auto Trait Implementations§
impl Freeze for GenerateKey
impl RefUnwindSafe for GenerateKey
impl Send for GenerateKey
impl Sync for GenerateKey
impl Unpin for GenerateKey
impl UnsafeUnpin for GenerateKey
impl UnwindSafe for GenerateKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.