Rizin
unix-like reverse engineering framework and cli tools
rz_pkcs7.h
Go to the documentation of this file.
1 #ifndef RZ_PKCS7_H
2 #define RZ_PKCS7_H
3 
4 #include <rz_util/rz_x509.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
14 
19 
24 
25 typedef struct rz_pkcs7_contentinfo_t {
27  RASN1Binary *content; // optional. oid structure definition
29 
34 
35 typedef struct rz_pkcs7_attribute_t {
36  RASN1String *oid; // OID
37  RASN1Binary *data; // optional. oid structure definition
39 
40 typedef struct rz_pkcs7_attributes_t {
44 
45 typedef struct rz_pkcs7_signerinfo_t {
54 
55 typedef struct rz_pkcs7_signerinfos_t {
59 
60 typedef struct rz_pkcs7_signeddata_t {
68 
69 typedef struct rz_pkcs7_container_t {
72 } RCMS;
73 
74 typedef struct {
75  RASN1String *type; // OID
76  RASN1Binary *data; // optional.
78 
79 typedef struct {
83 
84 typedef struct {
88 
90 RZ_API void rz_pkcs7_free_cms(RCMS *container);
91 RZ_API char *rz_pkcs7_cms_to_string(RCMS *container);
92 RZ_API PJ *rz_pkcs7_cms_json(RCMS *container);
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* RZ_PKCS7_H */
#define RZ_API
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
Definition: sflib.h:133
uint32_t ut32
uint8_t ut8
Definition: lh5801.h:11
struct rz_pkcs7_issuerandserialnumber_t RPKCS7IssuerAndSerialNumber
struct rz_pkcs7_signeddata_t RPKCS7SignedData
struct rz_pkcs7_extendedcertificatesandcertificates_t RPKCS7ExtendedCertificatesAndCertificates
struct rz_pkcs7_contentinfo_t RPKCS7ContentInfo
RZ_API RCMS * rz_pkcs7_parse_cms(const ut8 *buffer, ut32 length)
Definition: pkcs7.c:308
RZ_API void rz_pkcs7_free_cms(RCMS *container)
Definition: pkcs7.c:341
struct rz_pkcs7_certificaterevocationlists_t RPKCS7CertificateRevocationLists
struct rz_pkcs7_attributes_t RPKCS7Attributes
RZ_API void rz_pkcs7_free_spcinfo(SpcIndirectDataContent *spcinfo)
Definition: pkcs7.c:729
struct rz_pkcs7_signerinfo_t RPKCS7SignerInfo
RZ_API char * rz_pkcs7_cms_to_string(RCMS *container)
Definition: pkcs7.c:479
RZ_API SpcIndirectDataContent * rz_pkcs7_parse_spcinfo(RCMS *cms)
Definition: pkcs7.c:674
struct rz_pkcs7_digestalgorithmidentifiers_t RPKCS7DigestAlgorithmIdentifiers
struct rz_pkcs7_container_t RCMS
struct rz_pkcs7_signerinfos_t RPKCS7SignerInfos
RZ_API PJ * rz_pkcs7_cms_json(RCMS *container)
Definition: pkcs7.c:592
struct rz_pkcs7_attribute_t RPKCS7Attribute
RASN1Binary * digest
Definition: rz_pkcs7.h:81
RX509AlgorithmIdentifier digestAlgorithm
Definition: rz_pkcs7.h:80
SpcAttributeTypeAndOptionalValue data
Definition: rz_pkcs7.h:85
SpcDigestInfo messageDigest
Definition: rz_pkcs7.h:86
Definition: buffer.h:15
Definition: rz_pj.h:12
RASN1Binary * data
Definition: rz_pkcs7.h:37
RASN1String * oid
Definition: rz_pkcs7.h:36
RPKCS7Attribute ** elements
Definition: rz_pkcs7.h:42
RX509CertificateRevocationList ** elements
Definition: rz_pkcs7.h:12
RPKCS7SignedData signedData
Definition: rz_pkcs7.h:71
RASN1String * contentType
Definition: rz_pkcs7.h:70
RASN1Binary * content
Definition: rz_pkcs7.h:27
RASN1String * contentType
Definition: rz_pkcs7.h:26
RX509AlgorithmIdentifier ** elements
Definition: rz_pkcs7.h:22
RPKCS7DigestAlgorithmIdentifiers digestAlgorithms
Definition: rz_pkcs7.h:62
RPKCS7ExtendedCertificatesAndCertificates certificates
Definition: rz_pkcs7.h:64
RPKCS7CertificateRevocationLists crls
Definition: rz_pkcs7.h:65
RPKCS7SignerInfos signerinfos
Definition: rz_pkcs7.h:66
RPKCS7ContentInfo contentInfo
Definition: rz_pkcs7.h:63
RPKCS7IssuerAndSerialNumber issuerAndSerialNumber
Definition: rz_pkcs7.h:47
RPKCS7Attributes unauthenticatedAttributes
Definition: rz_pkcs7.h:52
RPKCS7Attributes authenticatedAttributes
Definition: rz_pkcs7.h:49
RX509AlgorithmIdentifier digestEncryptionAlgorithm
Definition: rz_pkcs7.h:50
RX509AlgorithmIdentifier digestAlgorithm
Definition: rz_pkcs7.h:48
RASN1Binary * encryptedDigest
Definition: rz_pkcs7.h:51
RPKCS7SignerInfo ** elements
Definition: rz_pkcs7.h:57