000023080 - BSAFE: MES: How to set temporary RSA key?

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000023080
Applies ToBSAFE/Micro Edition Suite
IssueHow to set temporary RSA key?

User should use R_SSL_CTX_set_tmp_rsa() in MES, even though it's missing from documentation.  Here is the API description:


* @fn long R_SSL_CTX_set_tmp_rsa(SSL_CTX *ctx, R_PKEY *rsa)


* Sets an RSA key for the default key for the #SSL_CTX <i>ctx</i>. The

* standard requires the creation of a temporary 512-bit RSA key when

* using export ciphers, and where the certificate's private key is greater

* than 512 bits.


* @param ctx [In, Out] The #SSL_CTX reference that binds the temporary key.

* @param rsa [In] The RSA reference where the temporary RSA key is

* stored.

* @return 1 indicates success.<br>

* <= 0 indicates error.


* @note This function is only required on the server side of the SSL

* protocol.


* @see R_SSL_CTX_set_tmp_rsa_cb() and R_SSL_CTX_set_tmp_key_mode().


Legacy Article IDa38995