RSA BSAFE Cert-C Micro Edition

The power of PKI for the smallest of devices

Key Generation Functions

This section outlines the functions that facilitate key and key parameter generation. Parameters can also be generated for use in key agreement operations.

Functions

int R_CR_generate_key_init (R_CR *crypto)
 Initializes a cryptographic operation for the generation of a set of asymmetric keys. More...

int R_CR_generate_key (R_CR *crypto, R_PKEY **key)
 Generates a set of asymmetric keys. More...

int R_CR_generate_parameter_init (R_CR *crypto)
 Initializes a cryptographic operation for the generation of a set of parameters for a subsequent key exchange. More...

int R_CR_generate_parameter (R_CR *crypto, R_PKEY **key)
 Generates a set of parameters for an asymmetric or key agreement operation. More...


Function Documentation

int R_CR_generate_key R_CR   crypto,
R_PKEY **    key
;
 

Generates a set of asymmetric keys.

Parameters:
crypto [In] A pointer to the cryptographic object.
Must be allocated the correct type and initialized by calls to R_CR_new() and R_CR_generate_key_init() respectively.
key [In] A pointer to the generated keys.
Returns:
R_ERROR_NONE indicates success.
See Error Identifiers for valid values.
See also:
R_CR_generate_key_init().

int R_CR_generate_key_init R_CR   crypto ;
 

Initializes a cryptographic operation for the generation of a set of asymmetric keys.

Parameters:
crypto [In] A pointer to the cryptographic object.
Must be allocated the correct type via R_CR_new().
Returns:
R_ERROR_NONE indicates success.
See Error Identifiers for valid values.
See also:
R_CR_generate_key().

int R_CR_generate_parameter R_CR   crypto,
R_PKEY **    parameters
;
 

Generates a set of parameters for an asymmetric or key agreement operation.

Parameters:
crypto [In] A pointer to the cryptographic object.
Must be allocated the correct type and initialized by calls to R_CR_new() and R_CR_generate_parameter_init() respectively.
parameters [Out] A pointer to the generated parameters.
Returns:
R_ERROR_NONE indicates success.
See Error Identifiers for valid values.
See also:
R_CR_generate_parameter_init().

int R_CR_generate_parameter_init R_CR   crypto ;
 

Initializes a cryptographic operation for the generation of a set of parameters for a subsequent key exchange.

Parameters:
crypto [In] A pointer to the cryptographic object.
Must be allocated the correct type via R_CR_new().
Returns:
R_ERROR_NONE indicates success.
See Error Identifiers for valid values.
See also:
R_CR_generate_parameter().


Copyright (c) 1999-2002 RSA Security Inc. All rights reserved. 061-001005-150-001-000-3768 - 1.5