silc_acc_public_key

SYNOPSIS

    SilcPublicKey silc_acc_public_key(SilcAccelerator acc,
                                      SilcPublicKey public_key);

DESCRIPTION

Accelerate the public key indicated by `public_key'. Returns new accelerated SilcPublicKey context. It can be used just as normal public key and must be freed by calling silc_pkcs_public_key_free. The associated `public_key' is not freed when the accelerated public key is freed. The `public_key' must not be freed as long as it is accelerated.

The associated `public_key' can be retrieved from the returned public key by calling silc_acc_get_public_key.

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