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


gsk_factor_public_key_rsa()

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

Factorizes an RSA public key into its component values.
Note: This function is deprecated. Use gsk_factor_public_key() instead.

Format

   #include <gskcms.h>

   gsk_status gsk_factor_public_key_rsa (
                                          x509_public_key_info *  public_key,
                                          gsk_uint32 *            modulus_bits,
                                          gsk_buffer *            modulus,
                                          gsk_buffer *            exponent)

Parameters

public_key
Specifies the public key.
modulus_bits
Returns the length of the modulus in bits.
modulus
Returns the modulus (n).
exponent
Returns the public exponent (e).

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_factor_public_key_rsa() function deconstructs the pkcs_public_key_info into its RSA public key components.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014