silc_acc_cipher
SYNOPSIS
SilcCipher silc_acc_cipher(SilcAccelerator acc, SilcCipher cipher);
DESCRIPTION
Accelerate the cipher indicated by `cipher'. Returns new accelerated SilcCipher context. It can be used just as normal cipher and must be freed by calilng silc_cipher_free. The associated `cipher' is not freed when the accelerated cipher is freed. The `cipher' must not be freed as long as it is accelerated.
When key and IV is set for the accelerated cipher, it is also set to the associated cipher.
The associated `cipher' can be retrieved from the accelerated cipher by calling silc_acc_get_cipher.
If this returns NULL the cipher could not be accelerated. This usually should not be considered serious error. Instead, the cipher should be used without acceleration.