23 #ifndef __PKCS_HEADER__ 24 #define __PKCS_HEADER__ 34 #ifdef __ENABLE_MOCANA_PKCS7__ 40 PKCS7_EnvelopWithCertificate(
const ubyte* cert, ubyte4 certLen,
41 const ubyte* encryptAlgoOID,
42 const ubyte* pPayLoad, ubyte4 payLoadLen,
43 ubyte** ppEnveloped, ubyte4* pEnvelopedLen);
48 PKCS7_EnvelopWithCertificates( ubyte4 numCerts,
51 const ubyte* encryptAlgoOID,
52 const ubyte* pPayLoad, ubyte4 payLoadLen,
53 ubyte** ppEnveloped, ubyte4* pEnvelopedLen);
58 PKCS7_DecryptEnvelopedDataPart(
const ubyte* pkcs7Msg, ubyte4 pkcs7MsgLen,
61 ubyte** decryptedInfo, sbyte4* decryptedInfoLen);
64 PKCS7_SignWithCertificateAndKeyBlob(
const ubyte* cert, ubyte4 certLen,
65 const ubyte* keyBlob, ubyte4 keyBlobLen,
66 ASN1_ITEMPTR pCACertificates[],
70 CStream pCrlStreams[],
72 const ubyte* digestAlgoOID,
73 const ubyte* payLoadType,
76 Attribute* pAuthAttrs, ubyte4 authAttrsLen,
77 RNGFun rngFun,
void* rngFunArg,
78 ubyte** ppSigned, ubyte4* pSignedLen);
Information about an attribute of a SignedData object.
Definition: pkcs7.h:76
MSTATUS(* PKCS7_GetPrivateKey)(const void *arg, CStream cs, struct ASN1_ITEM *pSerialNumber, struct ASN1_ITEM *pIssuerName, struct AsymmetricKey *pKey)
Get the private key associated with a given certificate in a PKCS #7 message (CMS message stream)...
Definition: pkcs7.h:231