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


gsk_get_ec_parameters_info()

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

Get the named curve type and key size for EC domain parameters.

Format

   #include <gskcms.h>

   gsk_status gsk_get_ec_parameters_info (
                                          gsk_buffer *                ec_parameters,
                                          x509_ec_parameters_info *   key_info)

Parameters

ec_parameters
Specifies the ASN.1-encoded EC domain parameters to be analyzed.
key_info
Returns the elliptic curve information.

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:
[CMSERR_BAD_EC_PARAMS]
Elliptic Curve parameters are not valid.
[CSMERR_EC_PARAMETERS_NOT_SUPPLIED]
EC parameters not supplied.
[CMSERR_STRUCTURE_TOO_SMALL]
Size specified for supplied structure is too small.

Usage

The gsk_get_ec_parameters_info() routine returns the elliptic curve type and key size of the supplied EC domain parameters. Before calling the function, the application must initialize the size field in key_info to the size of the x509_ec_parameters_info structure.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014