Gck.Session.prototype.generate_key_pair
function generate_key_pair(mech_type: Number(gulong), public_attrs: Gck.Attributes, private_attrs: Gck.Attributes, cancellable: Gio.Cancellable): [ok: Boolean, public_key: Gck.Object, private_key: Gck.Object] { // Gjs wrapper for gck_session_generate_key_pair() }
Generate a new key pair of public and private keys. This call may block for an indefinite period.
If the public_attrs and/or private_attrs Gck.Attributes is floating, it is consumed.
- mech_type
The mechanism type 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.
- ok
TRUE if the operation succeeded.
- public_key
location to return the resulting public key
- private_key
location to return the resulting private key.