On Wed, Apr 10, 2013, Ken Goldman wrote:

> (The answer to this seems to be 'no', but the web posts were 5-10
> years old.  Perhaps there's a better answer today.)
> 
> I'm using openssl to emulate a TPM.  The hardware device has an
> abort feature, where the TPM driver can cancel a long command.  The
> driver wants to distinguish between a long command and a failure.
> 
> Does openssl have any elegant way to cancel an RSA key generation
> that's taking too long?
> 
> The best I saw on the web is to do the key generation in another
> thread.  If the command is canceled, ignore the thread result.

At the EVP_PKEY level you can return 0 from the key generation callback to
cancel the operation. See EVP_PKEY_set_cb().

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to