silc_pkcs_encrypt_async

SYNOPSIS

    SilcAsyncOperation
    silc_pkcs_encrypt_async(SilcPublicKey public_key,
                            unsigned char *src,
                            SilcUInt32 src_len, SilcRng rng,
                            SilcPKCSEncryptCb encrypt_cb,
                            void *context);

DESCRIPTION

Encrypts with the public key. The `encrypt_cb' will be called to deliver the encrypted data. The encryption operation may be asynchronous if the `public_key' is accelerated public key. If this returns NULL the asynchronous operation cannot be controlled.