generate_key_pair_async
Description:
public async bool generate_key_pair_async (Mechanism mechanism, Attributes public_attrs, Attributes private_attrs, Cancellable? cancellable, out Object public_key, out Object private_key) throws Error
Generate a new key pair of public and private keys.
This call will return immediately and complete asynchronously.
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. |
cancellable |
Optional cancellation object or |
callback |
Called when the operation completes. |
user_data |
Data to pass to the callback. |