![]() |
TrustCore SDK NanoCert API reference
version 7.0
|
CMS recipient identification information. More...
Data Fields | |
union { | |
CMSKeyAgreeRecipientId karid | |
CMSKeyTransRecipientId ktrid | |
} | ri |
ubyte4 | type |
CMS recipient identification information that is passed to a CMS_GetPrivateKey() call.
The CMSRecipientId structure is defined as:
typedef struct CMSRecipientId { ubyte4 type; union { CMSKeyTransRecipientId ktrid; // type = NO_TAG CMSKeyAgreeRecipientId karid; // type = 1 } ri; } CMSRecipientId;
The layout of this structure shadows that of the RecipientInfo object.
RecipientInfo ::= CHOICE { ktri KeyTransRecipientInfo, kari [1] KeyAgreeRecipientInfo, kekri [2] KEKRecipientInfo }
CMSRecipientId
structure.The ktrid
member supplies a CMSKeyTransRecipientId
structure, and the karid
member supplies a CMSKeyAgreeRecipientId
structure.
When your callback function must interpret a CMSRecipientId structure, read the type member.