generate_key_pair_full


Description:

public bool generate_key_pair_full (Mechanism mechanism, Attributes public_attrs, Attributes private_attrs, out Object public_key, out Object private_key, Cancellable? cancellable = null) throws Error

Generate a new key pair of public and private keys.

This call may block for an indefinite period.

If public_attrs and/or private_attrs is a floating reference, it is consumed.

Parameters:

this

The session to use.

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.

public_key

a location to return the resulting public key

private_key

a location to return the resulting private key

cancellable

Optional cancellation object, or null.

Returns:

true if the operation succeeded.