generate_key_pair
Description:
public bool generate_key_pair (ulong mech_type, 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. |
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. |
public_key |
location to return the resulting public key |
private_key |
location to return the resulting private key. |
cancellable |
Optional cancellation object, or null. |
Returns:
true if the operation succeeded. |