Function yubihsm::commands::generate_wrap_key::generate_wrap_key [−][src]
pub fn generate_wrap_key<A: Adapter>(
session: &mut Session<A>,
key_id: ObjectId,
label: ObjectLabel,
domains: Domain,
capabilities: Capability,
delegated_capabilities: Capability,
algorithm: WrapAlg
) -> Result<ObjectId, SessionError>
Generate a new wrap key within the YubiHSM2
Delegated capabilities are the set of Capability
bits that an object is allowed to have
when imported or exported using the wrap key