cms_local.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. /*
  2. * Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OSSL_CRYPTO_CMS_LOCAL_H
  10. # define OSSL_CRYPTO_CMS_LOCAL_H
  11. # include <openssl/x509.h>
  12. /*
  13. * Cryptographic message syntax (CMS) structures: taken from RFC3852
  14. */
  15. /* Forward references */
  16. typedef struct CMS_IssuerAndSerialNumber_st CMS_IssuerAndSerialNumber;
  17. typedef struct CMS_EncapsulatedContentInfo_st CMS_EncapsulatedContentInfo;
  18. typedef struct CMS_SignerIdentifier_st CMS_SignerIdentifier;
  19. typedef struct CMS_SignedData_st CMS_SignedData;
  20. typedef struct CMS_OtherRevocationInfoFormat_st CMS_OtherRevocationInfoFormat;
  21. typedef struct CMS_OriginatorInfo_st CMS_OriginatorInfo;
  22. typedef struct CMS_EncryptedContentInfo_st CMS_EncryptedContentInfo;
  23. typedef struct CMS_EnvelopedData_st CMS_EnvelopedData;
  24. typedef struct CMS_DigestedData_st CMS_DigestedData;
  25. typedef struct CMS_EncryptedData_st CMS_EncryptedData;
  26. typedef struct CMS_AuthenticatedData_st CMS_AuthenticatedData;
  27. typedef struct CMS_AuthEnvelopedData_st CMS_AuthEnvelopedData;
  28. typedef struct CMS_CompressedData_st CMS_CompressedData;
  29. typedef struct CMS_OtherCertificateFormat_st CMS_OtherCertificateFormat;
  30. typedef struct CMS_KeyTransRecipientInfo_st CMS_KeyTransRecipientInfo;
  31. typedef struct CMS_OriginatorPublicKey_st CMS_OriginatorPublicKey;
  32. typedef struct CMS_OriginatorIdentifierOrKey_st CMS_OriginatorIdentifierOrKey;
  33. typedef struct CMS_KeyAgreeRecipientInfo_st CMS_KeyAgreeRecipientInfo;
  34. typedef struct CMS_RecipientKeyIdentifier_st CMS_RecipientKeyIdentifier;
  35. typedef struct CMS_KeyAgreeRecipientIdentifier_st
  36. CMS_KeyAgreeRecipientIdentifier;
  37. typedef struct CMS_KEKIdentifier_st CMS_KEKIdentifier;
  38. typedef struct CMS_KEKRecipientInfo_st CMS_KEKRecipientInfo;
  39. typedef struct CMS_PasswordRecipientInfo_st CMS_PasswordRecipientInfo;
  40. typedef struct CMS_OtherRecipientInfo_st CMS_OtherRecipientInfo;
  41. typedef struct CMS_ReceiptsFrom_st CMS_ReceiptsFrom;
  42. typedef struct CMS_CTX_st CMS_CTX;
  43. struct CMS_CTX_st {
  44. OSSL_LIB_CTX *libctx;
  45. char *propq;
  46. };
  47. struct CMS_ContentInfo_st {
  48. ASN1_OBJECT *contentType;
  49. union {
  50. ASN1_OCTET_STRING *data;
  51. CMS_SignedData *signedData;
  52. CMS_EnvelopedData *envelopedData;
  53. CMS_DigestedData *digestedData;
  54. CMS_EncryptedData *encryptedData;
  55. CMS_AuthEnvelopedData *authEnvelopedData;
  56. CMS_AuthenticatedData *authenticatedData;
  57. CMS_CompressedData *compressedData;
  58. ASN1_TYPE *other;
  59. /* Other types ... */
  60. void *otherData;
  61. } d;
  62. CMS_CTX ctx;
  63. };
  64. DEFINE_STACK_OF(CMS_CertificateChoices)
  65. struct CMS_SignedData_st {
  66. int32_t version;
  67. STACK_OF(X509_ALGOR) *digestAlgorithms;
  68. CMS_EncapsulatedContentInfo *encapContentInfo;
  69. STACK_OF(CMS_CertificateChoices) *certificates;
  70. STACK_OF(CMS_RevocationInfoChoice) *crls;
  71. STACK_OF(CMS_SignerInfo) *signerInfos;
  72. };
  73. struct CMS_EncapsulatedContentInfo_st {
  74. ASN1_OBJECT *eContentType;
  75. ASN1_OCTET_STRING *eContent;
  76. /* Set to 1 if incomplete structure only part set up */
  77. int partial;
  78. };
  79. struct CMS_SignerInfo_st {
  80. int32_t version;
  81. CMS_SignerIdentifier *sid;
  82. X509_ALGOR *digestAlgorithm;
  83. STACK_OF(X509_ATTRIBUTE) *signedAttrs;
  84. X509_ALGOR *signatureAlgorithm;
  85. ASN1_OCTET_STRING *signature;
  86. STACK_OF(X509_ATTRIBUTE) *unsignedAttrs;
  87. /* Signing certificate and key */
  88. X509 *signer;
  89. EVP_PKEY *pkey;
  90. /* Digest and public key context for alternative parameters */
  91. EVP_MD_CTX *mctx;
  92. EVP_PKEY_CTX *pctx;
  93. const CMS_CTX *cms_ctx;
  94. };
  95. struct CMS_SignerIdentifier_st {
  96. int type;
  97. union {
  98. CMS_IssuerAndSerialNumber *issuerAndSerialNumber;
  99. ASN1_OCTET_STRING *subjectKeyIdentifier;
  100. } d;
  101. };
  102. struct CMS_EnvelopedData_st {
  103. int32_t version;
  104. CMS_OriginatorInfo *originatorInfo;
  105. STACK_OF(CMS_RecipientInfo) *recipientInfos;
  106. CMS_EncryptedContentInfo *encryptedContentInfo;
  107. STACK_OF(X509_ATTRIBUTE) *unprotectedAttrs;
  108. };
  109. struct CMS_OriginatorInfo_st {
  110. STACK_OF(CMS_CertificateChoices) *certificates;
  111. STACK_OF(CMS_RevocationInfoChoice) *crls;
  112. };
  113. struct CMS_EncryptedContentInfo_st {
  114. ASN1_OBJECT *contentType;
  115. X509_ALGOR *contentEncryptionAlgorithm;
  116. ASN1_OCTET_STRING *encryptedContent;
  117. /* Content encryption algorithm, key and tag */
  118. const EVP_CIPHER *cipher;
  119. unsigned char *key;
  120. size_t keylen;
  121. unsigned char *tag;
  122. size_t taglen;
  123. /* Set to 1 if we are debugging decrypt and don't fake keys for MMA */
  124. int debug;
  125. /* Set to 1 if we have no cert and need extra safety measures for MMA */
  126. int havenocert;
  127. };
  128. struct CMS_RecipientInfo_st {
  129. int type;
  130. union {
  131. CMS_KeyTransRecipientInfo *ktri;
  132. CMS_KeyAgreeRecipientInfo *kari;
  133. CMS_KEKRecipientInfo *kekri;
  134. CMS_PasswordRecipientInfo *pwri;
  135. CMS_OtherRecipientInfo *ori;
  136. } d;
  137. };
  138. typedef CMS_SignerIdentifier CMS_RecipientIdentifier;
  139. struct CMS_KeyTransRecipientInfo_st {
  140. int32_t version;
  141. CMS_RecipientIdentifier *rid;
  142. X509_ALGOR *keyEncryptionAlgorithm;
  143. ASN1_OCTET_STRING *encryptedKey;
  144. /* Recipient Key and cert */
  145. X509 *recip;
  146. EVP_PKEY *pkey;
  147. /* Public key context for this operation */
  148. EVP_PKEY_CTX *pctx;
  149. const CMS_CTX *cms_ctx;
  150. };
  151. struct CMS_KeyAgreeRecipientInfo_st {
  152. int32_t version;
  153. CMS_OriginatorIdentifierOrKey *originator;
  154. ASN1_OCTET_STRING *ukm;
  155. X509_ALGOR *keyEncryptionAlgorithm;
  156. STACK_OF(CMS_RecipientEncryptedKey) *recipientEncryptedKeys;
  157. /* Public key context associated with current operation */
  158. EVP_PKEY_CTX *pctx;
  159. /* Cipher context for CEK wrapping */
  160. EVP_CIPHER_CTX *ctx;
  161. const CMS_CTX *cms_ctx;
  162. };
  163. struct CMS_OriginatorIdentifierOrKey_st {
  164. int type;
  165. union {
  166. CMS_IssuerAndSerialNumber *issuerAndSerialNumber;
  167. ASN1_OCTET_STRING *subjectKeyIdentifier;
  168. CMS_OriginatorPublicKey *originatorKey;
  169. } d;
  170. };
  171. struct CMS_OriginatorPublicKey_st {
  172. X509_ALGOR *algorithm;
  173. ASN1_BIT_STRING *publicKey;
  174. };
  175. struct CMS_RecipientEncryptedKey_st {
  176. CMS_KeyAgreeRecipientIdentifier *rid;
  177. ASN1_OCTET_STRING *encryptedKey;
  178. /* Public key associated with this recipient */
  179. EVP_PKEY *pkey;
  180. };
  181. struct CMS_KeyAgreeRecipientIdentifier_st {
  182. int type;
  183. union {
  184. CMS_IssuerAndSerialNumber *issuerAndSerialNumber;
  185. CMS_RecipientKeyIdentifier *rKeyId;
  186. } d;
  187. };
  188. struct CMS_RecipientKeyIdentifier_st {
  189. ASN1_OCTET_STRING *subjectKeyIdentifier;
  190. ASN1_GENERALIZEDTIME *date;
  191. CMS_OtherKeyAttribute *other;
  192. };
  193. struct CMS_KEKRecipientInfo_st {
  194. int32_t version;
  195. CMS_KEKIdentifier *kekid;
  196. X509_ALGOR *keyEncryptionAlgorithm;
  197. ASN1_OCTET_STRING *encryptedKey;
  198. /* Extra info: symmetric key to use */
  199. unsigned char *key;
  200. size_t keylen;
  201. const CMS_CTX *cms_ctx;
  202. };
  203. struct CMS_KEKIdentifier_st {
  204. ASN1_OCTET_STRING *keyIdentifier;
  205. ASN1_GENERALIZEDTIME *date;
  206. CMS_OtherKeyAttribute *other;
  207. };
  208. struct CMS_PasswordRecipientInfo_st {
  209. int32_t version;
  210. X509_ALGOR *keyDerivationAlgorithm;
  211. X509_ALGOR *keyEncryptionAlgorithm;
  212. ASN1_OCTET_STRING *encryptedKey;
  213. /* Extra info: password to use */
  214. unsigned char *pass;
  215. size_t passlen;
  216. const CMS_CTX *cms_ctx;
  217. };
  218. struct CMS_OtherRecipientInfo_st {
  219. ASN1_OBJECT *oriType;
  220. ASN1_TYPE *oriValue;
  221. };
  222. struct CMS_DigestedData_st {
  223. int32_t version;
  224. X509_ALGOR *digestAlgorithm;
  225. CMS_EncapsulatedContentInfo *encapContentInfo;
  226. ASN1_OCTET_STRING *digest;
  227. };
  228. struct CMS_EncryptedData_st {
  229. int32_t version;
  230. CMS_EncryptedContentInfo *encryptedContentInfo;
  231. STACK_OF(X509_ATTRIBUTE) *unprotectedAttrs;
  232. };
  233. struct CMS_AuthenticatedData_st {
  234. int32_t version;
  235. CMS_OriginatorInfo *originatorInfo;
  236. STACK_OF(CMS_RecipientInfo) *recipientInfos;
  237. X509_ALGOR *macAlgorithm;
  238. X509_ALGOR *digestAlgorithm;
  239. CMS_EncapsulatedContentInfo *encapContentInfo;
  240. STACK_OF(X509_ATTRIBUTE) *authAttrs;
  241. ASN1_OCTET_STRING *mac;
  242. STACK_OF(X509_ATTRIBUTE) *unauthAttrs;
  243. };
  244. struct CMS_AuthEnvelopedData_st {
  245. int32_t version;
  246. CMS_OriginatorInfo *originatorInfo;
  247. STACK_OF(CMS_RecipientInfo) *recipientInfos;
  248. CMS_EncryptedContentInfo *authEncryptedContentInfo;
  249. STACK_OF(X509_ATTRIBUTE) *authAttrs;
  250. ASN1_OCTET_STRING *mac;
  251. STACK_OF(X509_ATTRIBUTE) *unauthAttrs;
  252. };
  253. struct CMS_CompressedData_st {
  254. int32_t version;
  255. X509_ALGOR *compressionAlgorithm;
  256. STACK_OF(CMS_RecipientInfo) *recipientInfos;
  257. CMS_EncapsulatedContentInfo *encapContentInfo;
  258. };
  259. struct CMS_RevocationInfoChoice_st {
  260. int type;
  261. union {
  262. X509_CRL *crl;
  263. CMS_OtherRevocationInfoFormat *other;
  264. } d;
  265. };
  266. # define CMS_REVCHOICE_CRL 0
  267. # define CMS_REVCHOICE_OTHER 1
  268. struct CMS_OtherRevocationInfoFormat_st {
  269. ASN1_OBJECT *otherRevInfoFormat;
  270. ASN1_TYPE *otherRevInfo;
  271. };
  272. struct CMS_CertificateChoices {
  273. int type;
  274. union {
  275. X509 *certificate;
  276. ASN1_STRING *extendedCertificate; /* Obsolete */
  277. ASN1_STRING *v1AttrCert; /* Left encoded for now */
  278. ASN1_STRING *v2AttrCert; /* Left encoded for now */
  279. CMS_OtherCertificateFormat *other;
  280. } d;
  281. };
  282. # define CMS_CERTCHOICE_CERT 0
  283. # define CMS_CERTCHOICE_EXCERT 1
  284. # define CMS_CERTCHOICE_V1ACERT 2
  285. # define CMS_CERTCHOICE_V2ACERT 3
  286. # define CMS_CERTCHOICE_OTHER 4
  287. struct CMS_OtherCertificateFormat_st {
  288. ASN1_OBJECT *otherCertFormat;
  289. ASN1_TYPE *otherCert;
  290. };
  291. /*
  292. * This is also defined in pkcs7.h but we duplicate it to allow the CMS code
  293. * to be independent of PKCS#7
  294. */
  295. struct CMS_IssuerAndSerialNumber_st {
  296. X509_NAME *issuer;
  297. ASN1_INTEGER *serialNumber;
  298. };
  299. struct CMS_OtherKeyAttribute_st {
  300. ASN1_OBJECT *keyAttrId;
  301. ASN1_TYPE *keyAttr;
  302. };
  303. /* ESS structures */
  304. struct CMS_ReceiptRequest_st {
  305. ASN1_OCTET_STRING *signedContentIdentifier;
  306. CMS_ReceiptsFrom *receiptsFrom;
  307. STACK_OF(GENERAL_NAMES) *receiptsTo;
  308. };
  309. struct CMS_ReceiptsFrom_st {
  310. int type;
  311. union {
  312. int32_t allOrFirstTier;
  313. STACK_OF(GENERAL_NAMES) *receiptList;
  314. } d;
  315. };
  316. struct CMS_Receipt_st {
  317. int32_t version;
  318. ASN1_OBJECT *contentType;
  319. ASN1_OCTET_STRING *signedContentIdentifier;
  320. ASN1_OCTET_STRING *originatorSignatureValue;
  321. };
  322. DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
  323. DECLARE_ASN1_ITEM(CMS_SignerInfo)
  324. DECLARE_ASN1_ITEM(CMS_IssuerAndSerialNumber)
  325. DECLARE_ASN1_ITEM(CMS_Attributes_Sign)
  326. DECLARE_ASN1_ITEM(CMS_Attributes_Verify)
  327. DECLARE_ASN1_ITEM(CMS_RecipientInfo)
  328. DECLARE_ASN1_ITEM(CMS_PasswordRecipientInfo)
  329. DECLARE_ASN1_ALLOC_FUNCTIONS(CMS_IssuerAndSerialNumber)
  330. # define CMS_SIGNERINFO_ISSUER_SERIAL 0
  331. # define CMS_SIGNERINFO_KEYIDENTIFIER 1
  332. # define CMS_RECIPINFO_ISSUER_SERIAL 0
  333. # define CMS_RECIPINFO_KEYIDENTIFIER 1
  334. # define CMS_REK_ISSUER_SERIAL 0
  335. # define CMS_REK_KEYIDENTIFIER 1
  336. # define CMS_OIK_ISSUER_SERIAL 0
  337. # define CMS_OIK_KEYIDENTIFIER 1
  338. # define CMS_OIK_PUBKEY 2
  339. BIO *cms_content_bio(CMS_ContentInfo *cms);
  340. const CMS_CTX *cms_get0_cmsctx(const CMS_ContentInfo *cms);
  341. OSSL_LIB_CTX *cms_ctx_get0_libctx(const CMS_CTX *ctx);
  342. const char *cms_ctx_get0_propq(const CMS_CTX *ctx);
  343. void cms_resolve_libctx(CMS_ContentInfo *ci);
  344. CMS_ContentInfo *cms_Data_create(OSSL_LIB_CTX *ctx, const char *propq);
  345. CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md,
  346. OSSL_LIB_CTX *libctx,
  347. const char *propq);
  348. BIO *cms_DigestedData_init_bio(const CMS_ContentInfo *cms);
  349. int cms_DigestedData_do_final(const CMS_ContentInfo *cms,
  350. BIO *chain, int verify);
  351. BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms);
  352. int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain);
  353. int cms_set1_SignerIdentifier(CMS_SignerIdentifier *sid, X509 *cert,
  354. int type, const CMS_CTX *ctx);
  355. int cms_SignerIdentifier_get0_signer_id(CMS_SignerIdentifier *sid,
  356. ASN1_OCTET_STRING **keyid,
  357. X509_NAME **issuer,
  358. ASN1_INTEGER **sno);
  359. int cms_SignerIdentifier_cert_cmp(CMS_SignerIdentifier *sid, X509 *cert);
  360. CMS_ContentInfo *cms_CompressedData_create(int comp_nid, OSSL_LIB_CTX *libctx,
  361. const char *propq);
  362. BIO *cms_CompressedData_init_bio(const CMS_ContentInfo *cms);
  363. BIO *cms_DigestAlgorithm_init_bio(X509_ALGOR *digestAlgorithm,
  364. const CMS_CTX *ctx);
  365. int cms_DigestAlgorithm_find_ctx(EVP_MD_CTX *mctx, BIO *chain,
  366. X509_ALGOR *mdalg);
  367. int cms_ias_cert_cmp(CMS_IssuerAndSerialNumber *ias, X509 *cert);
  368. int cms_keyid_cert_cmp(ASN1_OCTET_STRING *keyid, X509 *cert);
  369. int cms_set1_ias(CMS_IssuerAndSerialNumber **pias, X509 *cert);
  370. int cms_set1_keyid(ASN1_OCTET_STRING **pkeyid, X509 *cert);
  371. BIO *cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec,
  372. const CMS_CTX *ctx);
  373. BIO *cms_EncryptedData_init_bio(const CMS_ContentInfo *cms);
  374. int cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec,
  375. const EVP_CIPHER *cipher,
  376. const unsigned char *key, size_t keylen,
  377. const CMS_CTX *ctx);
  378. int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);
  379. int cms_msgSigDigest_add1(CMS_SignerInfo *dest, CMS_SignerInfo *src);
  380. ASN1_OCTET_STRING *cms_encode_Receipt(CMS_SignerInfo *si);
  381. BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
  382. int cms_EnvelopedData_final(CMS_ContentInfo *cms, BIO *chain);
  383. BIO *cms_AuthEnvelopedData_init_bio(CMS_ContentInfo *cms);
  384. int cms_AuthEnvelopedData_final(CMS_ContentInfo *cms, BIO *cmsbio);
  385. CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms);
  386. CMS_AuthEnvelopedData *cms_get0_auth_enveloped(CMS_ContentInfo *cms);
  387. CMS_EncryptedContentInfo* cms_get0_env_enc_content(const CMS_ContentInfo *cms);
  388. /* RecipientInfo routines */
  389. int cms_env_asn1_ctrl(CMS_RecipientInfo *ri, int cmd);
  390. int cms_pkey_get_ri_type(EVP_PKEY *pk);
  391. int cms_pkey_is_ri_type_supported(EVP_PKEY *pk, int ri_type);
  392. void cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms);
  393. /* KARI routines */
  394. int cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip,
  395. EVP_PKEY *recipPubKey, X509 *originator,
  396. EVP_PKEY *originatorPrivKey, unsigned int flags,
  397. const CMS_CTX *ctx);
  398. int cms_RecipientInfo_kari_encrypt(const CMS_ContentInfo *cms,
  399. CMS_RecipientInfo *ri);
  400. /* PWRI routines */
  401. int cms_RecipientInfo_pwri_crypt(const CMS_ContentInfo *cms,
  402. CMS_RecipientInfo *ri, int en_de);
  403. /* SignerInfo routines */
  404. int CMS_si_check_attributes(const CMS_SignerInfo *si);
  405. void cms_SignerInfos_set_cmsctx(CMS_ContentInfo *cms);
  406. /* ESS routines */
  407. int ess_check_signing_certs(CMS_SignerInfo *si, STACK_OF(X509) *chain);
  408. int cms_dh_envelope(CMS_RecipientInfo *ri, int decrypt);
  409. int cms_ecdh_envelope(CMS_RecipientInfo *ri, int decrypt);
  410. int cms_rsa_envelope(CMS_RecipientInfo *ri, int decrypt);
  411. int cms_ecdsa_dsa_sign(CMS_SignerInfo *si, int verify);
  412. int cms_rsa_sign(CMS_SignerInfo *si, int verify);
  413. DECLARE_ASN1_ITEM(CMS_CertificateChoices)
  414. DECLARE_ASN1_ITEM(CMS_DigestedData)
  415. DECLARE_ASN1_ITEM(CMS_EncryptedData)
  416. DECLARE_ASN1_ITEM(CMS_EnvelopedData)
  417. DECLARE_ASN1_ITEM(CMS_AuthEnvelopedData)
  418. DECLARE_ASN1_ITEM(CMS_KEKRecipientInfo)
  419. DECLARE_ASN1_ITEM(CMS_KeyAgreeRecipientInfo)
  420. DECLARE_ASN1_ITEM(CMS_KeyTransRecipientInfo)
  421. DECLARE_ASN1_ITEM(CMS_OriginatorPublicKey)
  422. DECLARE_ASN1_ITEM(CMS_OtherKeyAttribute)
  423. DECLARE_ASN1_ITEM(CMS_Receipt)
  424. DECLARE_ASN1_ITEM(CMS_ReceiptRequest)
  425. DECLARE_ASN1_ITEM(CMS_RecipientEncryptedKey)
  426. DECLARE_ASN1_ITEM(CMS_RecipientKeyIdentifier)
  427. DECLARE_ASN1_ITEM(CMS_RevocationInfoChoice)
  428. DECLARE_ASN1_ITEM(CMS_SignedData)
  429. DECLARE_ASN1_ITEM(CMS_CompressedData)
  430. #endif