Gck.Session.prototype.generate_key_pair_async
function generate_key_pair_async(mechanism: Gck.Mechanism, public_attrs: Gck.Attributes, private_attrs: Gck.Attributes, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for gck_session_generate_key_pair_async() }
Generate a new key pair of public and private keys. This call will return immediately and complete asynchronously.
If the public_attrs and/or private_attrs Gck.Attributes is floating, it is consumed.
- mechanism
The mechanism to use for key generation.
- public_attrs
Additional attributes for the generated public key.
- private_attrs
Additional attributes for the generated private key.
- cancellable
Optional cancellation object or NULL.
- callback
Called when the operation completes.