TrustCore SDK NanoCert API reference  version 7.0
certDescriptor Struct Reference

Certificate context (information required to manage a DER-encoded X.509 certificate). More...

Data Fields

ubyte4 certLength
 Number of bytes in pCertificate. More...
 
ubyte4 cookie
 Application-specific cookie. More...
 
ubyte4 keyBlobLength
 Number of bytes in pKeyBlob. More...
 
ubyte * pCertificate
 Pointer to DER-encoded X.509 certificate. More...
 
struct AsymmetricKey * pKey
 Pointer to asymmetric key; if defined, use this instead of pKeyBlob. More...
 
ubyte * pKeyBlob
 Pointer to key blob value. More...
 

Detailed Description

This structure encapsulates the required context of a DER-encoded X.509 certificate. An entity using a certificate for authentication must have access to the corresponding public and private key pair used to sign the certificate. Digicert SoT Platform provides API functions for generating and importing certificates; those API functions use the certDescriptor structure for passing certificate information.

Since
1.41
Version
1.41 and later

Field Documentation

◆ certLength

ubyte4 certDescriptor::certLength

Number of bytes in pCertificate.

◆ cookie

ubyte4 certDescriptor::cookie

Application-specific cookie.

Note
If the __ENABLE_MOCANA_64_BIT__ flag is defined, only the ubyte4 cookie field (not the ubyte8 cookie field) is included in the structure. If the flag is not defined, only the ubyte8 cookie (not the ubyte4 cookie) is included.

◆ keyBlobLength

ubyte4 certDescriptor::keyBlobLength

Number of bytes in pKeyBlob.

◆ pCertificate

ubyte* certDescriptor::pCertificate

Pointer to DER-encoded X.509 certificate.

◆ pKey

struct AsymmetricKey* certDescriptor::pKey

Pointer to asymmetric key; if defined, use this instead of pKeyBlob.

◆ pKeyBlob

ubyte* certDescriptor::pKeyBlob

Pointer to key blob value.


The documentation for this struct was generated from the following file: