TrustCore SDK NanoCert API reference  version 7.0
PKCS12DataObject Struct Reference

Content to be published in the PKCS #12 file with the privacy mode. More...

Data Fields

ubyte4 certificateLen
 Length of certificate file to publish, PKCS12DataObject::pCertificate. More...
 
ubyte4 crlLen
 Length of the CRL data object to publish, KCS12DataObject::pCrl. More...
 
certTypes eCertType
 Type of certificate; any of the certTypes enum values from pkcs12.h. More...
 
ubyte4 encKeyType
 PKCS #8 encrytion key type; any of the PKCS8EncryptionType enum values from pkcs_key.h. More...
 
ubyte4 keyPasswordLen
 Length of the password (in bytes). More...
 
ubyte4 numPKCS12AttrValue
 Number of PKCS12AtttributeUserValue instances in ppPKCS12AttrValue. More...
 
ubyte * pCertificate
 DER-encoded certificate file to publish in PKCS #12. More...
 
ubyte * pCrl
 Stream containing the CRL to publish in PKCS #12. More...
 
const ubyte * pKeyPassword
 Password for key encryption. More...
 
PKCS12AttributeUserValue ** ppPKCS12AttrValue
 NULL if no parameters required; otherwise pointer to PKCS12AtttributeUserValue object instance(s). More...
 
AsymmetricKey * pPrivateKey
 Private key to publish in PKCS #12. More...
 
ePKCS12Mode privacyMode
 Encryption and integrity to apply to the data; any of the ePKCS12Mode enum values from pkcs12.h. More...
 

Detailed Description

Content to be published in the PKCS #12 file with the privacy mode.

Field Documentation

◆ certificateLen

ubyte4 PKCS12DataObject::certificateLen

Length of certificate file to publish, PKCS12DataObject::pCertificate.

◆ crlLen

ubyte4 PKCS12DataObject::crlLen

Length of the CRL data object to publish, KCS12DataObject::pCrl.

◆ eCertType

certTypes PKCS12DataObject::eCertType

Type of certificate; any of the certTypes enum values from pkcs12.h.

◆ encKeyType

ubyte4 PKCS12DataObject::encKeyType

PKCS #8 encrytion key type; any of the PKCS8EncryptionType enum values from pkcs_key.h.

◆ keyPasswordLen

ubyte4 PKCS12DataObject::keyPasswordLen

Length of the password (in bytes).

◆ numPKCS12AttrValue

ubyte4 PKCS12DataObject::numPKCS12AttrValue

Number of PKCS12AtttributeUserValue instances in ppPKCS12AttrValue.

◆ pCertificate

ubyte* PKCS12DataObject::pCertificate

DER-encoded certificate file to publish in PKCS #12.

◆ pCrl

ubyte* PKCS12DataObject::pCrl

Stream containing the CRL to publish in PKCS #12.

◆ pKeyPassword

const ubyte* PKCS12DataObject::pKeyPassword

Password for key encryption; either of the following:

◆ ppPKCS12AttrValue

PKCS12AttributeUserValue** PKCS12DataObject::ppPKCS12AttrValue

NULL if no parameters required; otherwise pointer to PKCS12AtttributeUserValue object instance(s).

◆ pPrivateKey

AsymmetricKey* PKCS12DataObject::pPrivateKey

Private key to publish in PKCS #12.

◆ privacyMode

ePKCS12Mode PKCS12DataObject::privacyMode

Encryption and integrity to apply to the data; any of the followoing ePKCS12Mode enum values from pkcs12.h:

  • PKCS12Mode_Privacy_none (the mode will default to PKCS12Mode_Privacy_password)
  • PKCS12Mode_Privacy_data
  • PKCS12Mode_Privacy_password
  • PKCS12Mode_Privacy_pubKey
  • PKCS12Mode_Integrity_password
  • PKCS12Mode_Integrity_pubKey

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