Gck.Session.prototype.generate_key_pair_full

function generate_key_pair_full(mechanism: Gck.Mechanism, 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_full()
}
  

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.

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.

ok

TRUE if the operation succeeded.

public_key

a location to return the resulting public key

private_key

a location to return the resulting private key