sec_psm_gen_pub_key(3sec)Randomly generates a public key pair. This routine is not available in the DCE binary code. It is provided in DCE source for use by vendors. Synopsis #include <dce/sec_pk_base.h> error_status_t sec_psm_gen_pub_key( sec_pk_algorithm_id_t *key_type, unsigned32 modulus_bit_size, sec_pk_gen_data_t *seed, sec_pk_data_t *public_key, sec_pk_data_t *private_key, error_status_t *status); Parameters Input
key_type
modulus_bit_size
seed Output
private_key
public_key
status Description The sec_psm_gen_pub_key( ) routine generates a public key pair. This routine allocates memory for the returned key. Call the sec_pk_data_free( ) routine to deallocate the public key and sec_pk_data_zero_and_free( ) routine to deallocate the private key. Files
/usr/include/dce/sec_pk_base.idl Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. error_status_ok sec_psm_wrong_pub_key_type sec_bsafe_alloc Related Information
Functions:
|