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.
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. |