Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util/rz_x509.h>
Go to the source code of this file.
Classes | |
struct | rz_pkcs7_certificaterevocationlists_t |
struct | rz_pkcs7_extendedcertificatesandcertificates_t |
struct | rz_pkcs7_digestalgorithmidentifiers_t |
struct | rz_pkcs7_contentinfo_t |
struct | rz_pkcs7_issuerandserialnumber_t |
struct | rz_pkcs7_attribute_t |
struct | rz_pkcs7_attributes_t |
struct | rz_pkcs7_signerinfo_t |
struct | rz_pkcs7_signerinfos_t |
struct | rz_pkcs7_signeddata_t |
struct | rz_pkcs7_container_t |
struct | SpcAttributeTypeAndOptionalValue |
struct | SpcDigestInfo |
struct | SpcIndirectDataContent |
Typedefs | |
typedef struct rz_pkcs7_certificaterevocationlists_t | RPKCS7CertificateRevocationLists |
typedef struct rz_pkcs7_extendedcertificatesandcertificates_t | RPKCS7ExtendedCertificatesAndCertificates |
typedef struct rz_pkcs7_digestalgorithmidentifiers_t | RPKCS7DigestAlgorithmIdentifiers |
typedef struct rz_pkcs7_contentinfo_t | RPKCS7ContentInfo |
typedef struct rz_pkcs7_issuerandserialnumber_t | RPKCS7IssuerAndSerialNumber |
typedef struct rz_pkcs7_attribute_t | RPKCS7Attribute |
typedef struct rz_pkcs7_attributes_t | RPKCS7Attributes |
typedef struct rz_pkcs7_signerinfo_t | RPKCS7SignerInfo |
typedef struct rz_pkcs7_signerinfos_t | RPKCS7SignerInfos |
typedef struct rz_pkcs7_signeddata_t | RPKCS7SignedData |
typedef struct rz_pkcs7_container_t | RCMS |
Functions | |
RZ_API RCMS * | rz_pkcs7_parse_cms (const ut8 *buffer, ut32 length) |
RZ_API void | rz_pkcs7_free_cms (RCMS *container) |
RZ_API char * | rz_pkcs7_cms_to_string (RCMS *container) |
RZ_API PJ * | rz_pkcs7_cms_json (RCMS *container) |
RZ_API SpcIndirectDataContent * | rz_pkcs7_parse_spcinfo (RCMS *cms) |
RZ_API void | rz_pkcs7_free_spcinfo (SpcIndirectDataContent *spcinfo) |
typedef struct rz_pkcs7_container_t RCMS |
typedef struct rz_pkcs7_attribute_t RPKCS7Attribute |
typedef struct rz_pkcs7_attributes_t RPKCS7Attributes |
typedef struct rz_pkcs7_contentinfo_t RPKCS7ContentInfo |
typedef struct rz_pkcs7_extendedcertificatesandcertificates_t RPKCS7ExtendedCertificatesAndCertificates |
typedef struct rz_pkcs7_issuerandserialnumber_t RPKCS7IssuerAndSerialNumber |
typedef struct rz_pkcs7_signeddata_t RPKCS7SignedData |
typedef struct rz_pkcs7_signerinfo_t RPKCS7SignerInfo |
typedef struct rz_pkcs7_signerinfos_t RPKCS7SignerInfos |
Definition at line 592 of file pkcs7.c.
References rz_x509_algorithmidentifier_t::algorithm, rz_pkcs7_signeddata_t::certificates, rz_pkcs7_signeddata_t::crls, rz_pkcs7_signeddata_t::digestAlgorithms, rz_pkcs7_certificaterevocationlists_t::elements, rz_pkcs7_extendedcertificatesandcertificates_t::elements, rz_pkcs7_digestalgorithmidentifiers_t::elements, rz_pkcs7_signerinfos_t::elements, i, rz_pkcs7_certificaterevocationlists_t::length, rz_pkcs7_extendedcertificatesandcertificates_t::length, rz_pkcs7_digestalgorithmidentifiers_t::length, rz_pkcs7_signerinfos_t::length, NULL, pj_a(), pj_end(), pj_k(), pj_kn(), pj_new(), pj_o(), pj_s(), rz_x509_certificate_json(), rz_x509_crl_json(), rz_x509_signedinfo_json(), s, rz_pkcs7_container_t::signedData, rz_pkcs7_signeddata_t::signerinfos, and rz_pkcs7_signeddata_t::version.
Referenced by signature().
Definition at line 479 of file pkcs7.c.
References rz_x509_algorithmidentifier_t::algorithm, rz_pkcs7_signeddata_t::certificates, rz_pkcs7_signeddata_t::crls, rz_pkcs7_signeddata_t::digestAlgorithms, rz_pkcs7_certificaterevocationlists_t::elements, rz_pkcs7_extendedcertificatesandcertificates_t::elements, rz_pkcs7_digestalgorithmidentifiers_t::elements, rz_pkcs7_signerinfos_t::elements, free(), i, rz_pkcs7_certificaterevocationlists_t::length, rz_pkcs7_extendedcertificatesandcertificates_t::length, rz_pkcs7_digestalgorithmidentifiers_t::length, rz_pkcs7_signerinfos_t::length, NULL, rz_strbuf_append(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), rz_x509_certificate_dump(), rz_x509_crl_to_string(), rz_x509_signedinfo_dump(), s, sb, rz_pkcs7_container_t::signedData, rz_pkcs7_signeddata_t::signerinfos, and rz_pkcs7_signeddata_t::version.
Referenced by cmd_print_fromage(), and signature().
Definition at line 341 of file pkcs7.c.
References rz_pkcs7_container_t::contentType, free(), rz_asn1_free_string(), rz_pkcs7_free_signeddata(), and rz_pkcs7_container_t::signedData.
Referenced by cmd_print_fromage(), and rz_bin_pe_free().
RZ_API void rz_pkcs7_free_spcinfo | ( | SpcIndirectDataContent * | spcinfo | ) |
Definition at line 729 of file pkcs7.c.
References SpcIndirectDataContent::data, SpcIndirectDataContent::messageDigest, rz_pkcs7_free_spcdata(), and rz_pkcs7_free_spcmessagedigest().
Referenced by rz_bin_pe_free().
Definition at line 308 of file pkcs7.c.
References rz_pkcs7_container_t::contentType, free(), rz_asn1_list_t::length, rz_asn1_object_t::length, length, rz_asn1_object_t::list, NULL, rz_asn1_list_t::objects, rz_asn1_create_object(), rz_asn1_free_object(), rz_asn1_stringify_oid(), RZ_NEW0, rz_pkcs7_parse_signeddata(), rz_asn1_object_t::sector, and rz_pkcs7_container_t::signedData.
Referenced by bin_pe_init_security(), and cmd_print_fromage().
RZ_API SpcIndirectDataContent* rz_pkcs7_parse_spcinfo | ( | RCMS * | cms | ) |
Definition at line 674 of file pkcs7.c.
References rz_asn1_bin_t::binary, rz_pkcs7_contentinfo_t::content, rz_pkcs7_signeddata_t::contentInfo, rz_pkcs7_contentinfo_t::contentType, SpcIndirectDataContent::data, free(), rz_asn1_list_t::length, rz_asn1_bin_t::length, rz_asn1_object_t::list, SpcIndirectDataContent::messageDigest, NULL, rz_asn1_list_t::objects, rz_asn1_create_object(), rz_asn1_free_object(), RZ_FREE, RZ_NEW0, rz_pkcs7_parse_spcdata(), rz_pkcs7_parse_spcmessagedigest(), rz_return_val_if_fail, rz_pkcs7_container_t::signedData, and type.
Referenced by bin_pe_init_security().