silc_acc_private_key

SYNOPSIS

    SilcPrivateKey silc_acc_private_key(SilcAccelerator acc,
                                        SilcPrivateKey private_key);

DESCRIPTION

Accelerate the private key indicated by `private_key'. Returns new accelerated SilcPrivateKey context. It can be used just as normal private key and must be freed by calling silc_pkcs_private_key_free. The associated `private_key' is not freed when the accelerated private key is freed. The `private_key' must not be freed as long as it is accelerated.

The associated `private_key' can be retrieved from the returned private key by calling silc_acc_get_private_key.

If this returns NULL the private key could not be accelerated. This usually should not be considered serious error. Instead, the private key should be used without acceleration.