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


gsk_decode_private key()

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

Decodes a private key.

Format

   #include <gskcms.h>

   gsk_status gsk_decode_private_key ( 
                                      gsk_buffer *                     stream, 
                                      pkcs_private_key_info *          private_key)

Parameters

stream
Specifies the ASN.1 stream for the encoded private key.
private_key
Returns the decoded private key. The application should release the private key when it is no longer needed by calling the gsk_free_private_key_info() routine.

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. This is a possible error:
[ASN_NO_MEMORY]
Insufficient memory is available.

Usage

The gsk_decode_private_key() routine will decode an ASN.1 DER-encoded private key. The private key must have been encoded as described in PKCS #8, Version 1.2: Private Key Information Syntax.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014