RSA Security 5 Projection Television User Manual


 
KI_KeypairToken
274 RSA BSAFE Crypto-C Library Reference Manual
KI_KeypairToken
Purpose:
This KI allows you to specify the software-based token form of a public and private
key pair of type RSA or DSA. See
KI_ExtendedToken for the token form of a
symmetric key.
Type of information this allows you to use:
software-based token forms of RSA or DSA public and private key pairs. Backward-
compatible with
KI_Token.
Format of info supplied to B_SetKeyInfo:
pointer to a KI_KEYPAIR_TOKEN_INFO structure:
where
A_X509_KEYPAIR_ATTRIB_INFO is defined by:
and
A_KEYPAIR_DEFINER is defined by:
Format of info returned by B_GetKeyInfo:
pointer to a KI_KEYPAIR_TOKEN_INFO structure.
typedef struct {
KI_TOKEN_INFO keyDataStruct;
A_X509_KEYPAIR_ATTRIB_INFO attributes;
} KI_KEYPAIR_TOKEN_INFO;
typedef struct {
A_KEYPAIR_DEFINER externalSpecs;
unsigned long dateOfBirth;
} A_X509_KEYPAIR_ATTRIB_INFO;
typedef struct {
unsigned int keyUsage; /* X509 key usage bit map */
UINT4 lifeTime; /* Key lifetime; under consideration */
unsigned int protectFlag; /* Store key in encrypted form */
} A_KEYPAIR_DEFINER;