| RSA BSAFE SSL-C |
Security protocol components for C |
| Search |
Typedefs | |
| typedef RSA* | SSL_TMP_RSA_CB_T (SSL *ssl, int export_type) |
| A type of callback function that helps delay temporary RSA key creation. More... | |
| typedef DH* | SSL_TMP_DH_CB_T (SSL *ssl, int export_type) |
| A callback function that can be used to replace the temporary Diffie-Hellman (DH) key generation. More... | |
Functions | |
| long | SSL_CTX_set_tmp_rsa (SSL_CTX *ctx, RSA *rsa) |
| Sets an RSA key for the default key for the SSL_CTX ctx. More... | |
| long | SSL_CTX_set_tmp_dh (SSL_CTX *ctx, DH *dh) |
| Indicates that Diffie-Hellman (DH) parameters and ciphers should be used when creating a temporary key for the SSL_CTX ctx. More... | |
| long | SSL_CTX_set_tmp_rsa_cb (SSL_CTX *ctx, SSL_TMP_RSA_CB_T *cb) |
| Sets an RSA key generation callback for ctx. More... | |
| SSL_TMP_RSA_CB_T* | SSL_CTX_get_tmp_rsa_cb (SSL_CTX *ctx) |
| Returns the temporary RSA callback routine set against the SSL_CTX certificate. More... | |
| long | SSL_CTX_set_tmp_dh_cb (SSL_CTX *ctx, SSL_TMP_DH_CB_T *cb) |
| Delays the creation of the Diffie-Hellman (DH) key until such time as it is required by a cipher suite. More... | |
| SSL_TMP_DH_CB_T* | SSL_CTX_get_tmp_dh_cb (SSL_CTX *ctx) |
| Returns the temporary Diffie-Hellman callback routine set against the SSL_CTX certificate. More... | |
| long | SSL_set_tmp_rsa_cb (SSL *ssl, SSL_TMP_RSA_CB_T *callback) |
| Creates a temporary RSA key. More... | |
| SSL_TMP_RSA_CB_T* | SSL_get_tmp_rsa_cb (SSL *ssl) |
| Returns the temporary RSA callback routine set against the SSL certificate. More... | |
| long | SSL_set_tmp_dh_cb (SSL *ssl, SSL_TMP_DH_CB_T *callback) |
| Delays the creation of the Diffie-Hellman (DH) key until such time as it is required by a cipher suite. More... | |
| SSL_TMP_DH_CB_T* | SSL_get_tmp_dh_cb (SSL *ssl) |
| Returns the temporary Diffie-Hellman callback routine set against the SSL certificate. More... | |
| int | SSL_CTX_set_tmp_key_mode (SSL_CTX *ctx, int type, int mode) |
| This function is used to preset temporary keys or to set the builtin callbacks. More... | |
|
|
A callback function that can be used to replace the temporary Diffie-Hellman (DH) key generation. This DH temporary key callback is called in the server key exchange for an EDH cipher suite when there is no existing temporary DH key already available. Unlike the SSL_TMP_RSA_CB_T callback it does not get assigned as the value to use for all future handshakes and so will generate for each handshake that requires an EDH key. The generated key must be in a DH structure.
|
|
|
A type of callback function that helps delay temporary RSA key creation. This RSA callback is used by the server before a server key exchange message to generate a temporary RSA key in the case where the original server key cannot be used to encrypt the pre-master secret (export restrictions do not allow it, key was for signing only, etc). The generated key must be in the RSA key structure The callback is only run to generate the key if the handshake requires it. The server key exchange code checks for an existing temporary RSA key of the correct size before attempting to generate a new key. Once the callback runs successfully the result is assigned as the key to be used for all future handshakes of that SSL that require it. It does mean that the first handshake that requires a temporary key will take the extra time to generate the key which can be a bit of a distraction.
|
|
|
Returns the temporary Diffie-Hellman callback routine set against the SSL_CTX certificate.
|
|
|
Returns the temporary RSA callback routine set against the SSL_CTX certificate.
|
|
||||||||||||
|
Indicates that Diffie-Hellman (DH) parameters and ciphers should be used when creating a temporary key for the SSL_CTX ctx. If SSL_CTX_set_tmp_dh() is not called, the ephemeral DH ciphers will not be available. The DH structure stores DH parameters and the public and private key.
|
|
||||||||||||
|
Delays the creation of the Diffie-Hellman (DH) key until such time as it is required by a cipher suite.
|
|
||||||||||||||||
|
This function is used to preset temporary keys or to set the builtin callbacks.
|
|
||||||||||||
|
Sets an RSA key for the default key for the SSL_CTX ctx. The standard requires the creation of a temporary 512-bit RSA key when using export ciphers and the certificate's private key is greater than 512 bits.
|
|
||||||||||||
|
Sets an RSA key generation callback for ctx. 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. Creating a temporary RSA key is an expensive CPU operation and is not required by certain cipher suites. The callback delays the creation of the RSA key until such time as it is actually required.
|
|
|
Returns the temporary Diffie-Hellman callback routine set against the SSL certificate.
|
|
|
Returns the temporary RSA callback routine set against the SSL certificate.
|
|
||||||||||||
|
Delays the creation of the Diffie-Hellman (DH) key until such time as it is required by a cipher suite.
|
|
||||||||||||
|
Creates a temporary RSA key. Creating a temporary RSA key is an expensive CPU operation and is not required by certain cipher suites. The callback is used to delay the creation of the RSA key until such time as it is actually required. Therefore the program has a faster startup time and the creation operation is not used unless required.
|