TrustCore SDK NanoCert API reference  version 7.0
pkcs.h File Reference

Header file for Digicert SoT Platform PKCS #7 convenience API wrapper functions. More...

Go to the source code of this file.

Functions

MOC_EXTERN MSTATUS PKCS7_DecryptEnvelopedDataPart (const ubyte *pkcs7Msg, ubyte4 pkcs7MsgLen, void *callbackArg, PKCS7_GetPrivateKey getPrivateKeyFun, ubyte **decryptedInfo, sbyte4 *decryptedInfoLen)
 
MOC_EXTERN MSTATUS PKCS7_EnvelopWithCertificate (const ubyte *cert, ubyte4 certLen, const ubyte *encryptAlgoOID, const ubyte *pPayLoad, ubyte4 payLoadLen, ubyte **ppEnveloped, ubyte4 *pEnvelopedLen)
 
MOC_EXTERN MSTATUS PKCS7_EnvelopWithCertificates (ubyte4 numCerts, const ubyte *certs[], ubyte4 certLens[], const ubyte *encryptAlgoOID, const ubyte *pPayLoad, ubyte4 payLoadLen, ubyte **ppEnveloped, ubyte4 *pEnvelopedLen)
 
MOC_EXTERN MSTATUS PKCS7_SignWithCertificateAndKeyBlob (const ubyte *cert, ubyte4 certLen, const ubyte *keyBlob, ubyte4 keyBlobLen, ASN1_ITEMPTR pCACertificates[], CStream pCAStreams[], sbyte4 numCACerts, ASN1_ITEMPTR pCrls[], CStream pCrlStreams[], sbyte4 numCrls, const ubyte *digestAlgoOID, const ubyte *payLoadType, ubyte *pPayLoad, ubyte4 payLoadLen, Attribute *pAuthAttrs, ubyte4 authAttrsLen, RNGFun rngFun, void *rngFunArg, ubyte **ppSigned, ubyte4 *pSignedLen)
 

Detailed Description

This header file provides definitions, enumerations, and function declarations for Digicert SoT Platform PKCS #7 convenience API wrapper functions.

For lower-level, fundamental SoT Platform PKCS #7 functions, see pkcs7.h.