sec_psm_decrypt_data(3sec)Decrypts data that was encrypted with a public key mechanism. 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_decrypt_data( sec_psm_handle_t psm_handle, unsigned32 *kvno, sec_pk_algorithm_id_t *encryption_alg_id, sec_pk_usage_flags_t key_usage, sec_pk_encrypted_t *cipher_data, sec_pk__gen_data_t *clear_data, error_status_t *status); Parameters Input
psm_handle
kvno
encryption_alg_id
key_usage
cipher_data Output
clear_data
status Description The sec_psm_decrypt_data( ) routine decrypts data that was encrypted with a public key mechanism. The encryption_alg_id parameter specifies the encryption algorithm used. This routine allocates memory for the returned decrypted data. Call the sec_pk_data_free( ) routine to deallocate that memory. 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_not_init sec_psm_invalid_handle sec_psm_unsupported_algorithm_id sec_bsafe_encryption_failure sec_pvtkey_invalid_handle sec_pvtkey_mechanism_not_init sec_pvtkey_internal_error sec_pvtkey_invalid_password sec_pvtkey_multiple_key_usage Related Information
Functions:
|