GenerateKeyP - Generate a key with privilege (CDSA)
# include <cdsa/cssm.h>
CSSM_RETURN CSSMAPI CSSM_GenerateKeyP (CSSM_CC_HANDLE
CCHandle, uint32 KeyUsage, uint32 KeyAttr, const CSSM_DATA
*KeyLabel, const CSSM_RESOURCE_CONTROL_CONTEXT *CredAndAclEntry,
CSSM_KEY_PTR Key, CSSM_PRIVILEGE Privilege)
Common Security Services Manager library (libcssm.so)
The privilege to be applied during the cryptographic operation.
See CSSM_GenerateKey(3) for other parameters.
This function is similar to the CSSM_GenerateKey() function.
It also accepts a USEE tag as a privilege request
parameter. CSSM checks that either its own privilege set
or the application's privilege set (if the application is
signed) includes the tag. If the tag is found and the service
provider privilege set indicates that it is supported,
the tag is forwarded to the service provider.
A CSSM_RETURN value indicating success or specifying a
particular error condition. The value CSSM_OK indicates
success. All other values represent an error condition.
Errors are described in the CDSA technical standard. See
CDSA_intro(3).
Books
Intel CDSA Application Developer's Guide (see
CDSA_intro(3))
Reference Pages [Toc] [Back]
Functions: CSSM_GenerateKeyPairP(3), CSSM_GenerateRandom(3)
GenerateKeyP(3)
[ Back ] |