skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: GenerateKeyPairGenerateKeyPair
go to next page: GenerateMacGenerateMac
end of book navigation links


GenerateKeyPairP
Library
Description
Errors
 Parameters
Return Value
See Also

NAME

GenerateKeyPairP - Generate an asymmetric key pair with privilege (CDSA)

SYNOPSIS  

# include <cssm.h>

CSSM_RETURN CSSMAPI CSSM_GenerateKeyPairP(CSSM_CC_HANDLE CCHandle,uint32 PublicKeyUsage,uint32 PublicKeyAttr,const CSSM_DATA *PublicKeyLabel,CSSM_KEY_PTR PublicKey,uint32 PrivateKeyUsage,uint32 PrivateKeyAttr,const CSSM_DATA *PrivateKeyLabel,const CSSM_RESOURCE_CONTROL_CONTEXT *CredAndAclEntry,CSSM_KEY_PTR PrivateKey,CSSM_PRIVILEGE Privilege)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

Privilege (input)
 The privilege to be applied during the cryptographicoperation.
See CSSM_GenerateKeyPair.


return to top DESCRIPTION  

This function is similar to the CSSM_GenerateKeyPair() function. It also accepts a USEE tag as a privilege requestparameter. CSSM checks that either its own privilege set or theapplication's privilege set (if the application is signed) includesthe tag. If the tag is found and the service provider privilegeset indicates that it is supported, the tag is forwarded to theservice provider.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top ERRORS  

Errors are described in the CDSA Technical Standard.
CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide

Online Help

Functions: CSSM_GenerateKeyPair


go to previous page: GenerateKeyPairGenerateKeyPair
go to next page: GenerateMacGenerateMac