derive-key generate-key generate-key-pair unwrap-key wrap-key
(derive-key session-obj mechanism base-key-handle template)
Derives a key from a base key, creating a new key object. Returns a `key-handle`, if successful.
(generate-key session-obj mechanism &opt template)
Generates a secret key or set of domain parameters, creating a new key object. Returns a `key-handle`, if successful.
(generate-key-pair session-obj mechanism pubkey-template privkey-template)
Generates a public/private key pair, creating new key objects. Returns a list of [pubkey-handle privkey-handle], if successful.
(unwrap-key session-obj mechanism unwrapping-key-handle wrapped-key template)
Unwraps (i.e. decrypts) a wrapped key, creating a new private key or secret key object. Returns a `key-handle`, if successful.
(wrap-key session-obj mechanism wrapping-key-handle key-handle)
Wraps (i.e., encrypts) a private or secret key.Returns a wrapped key in string, if successful.