z/OS Cryptographic Services System SSL Programming
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


gsk_construct_public_key_rsa()

z/OS Cryptographic Services System SSL Programming
SC14-7495-00

Constructs an RSA public key from its component values.
Note: This function is deprecated. Use gsk_construct_public_key() instead.

Format

   #include <gskcms.h>

   gsk_status gsk_construct_public_key_rsa (
                                          gsk_buffer *             modulus,
                                          gsk_buffer *             exponent,
                                          x509_public_key_info *   public_key)

Parameters

modulus
Specifies the modulus (n).
exponent
Specifies the public exponent (e).
public_key
Returns the public key.

Results

The function return value will be 0 if no error is detected. Otherwise, it will be one of the return codes listed in the gskcms.h include file. These are some possible errors:
[ASN_ELEMENTS_MISSING]
Required data element is missing.

Usage

The gsk_construct_public_key_rsa() function constructs pkcs_public_key_info from its RSA public key components. The x509_public_key_info structures x509_algorithm_identifier is set with x509_alg_rsaEncryption.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014