Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static const char *PE_() | bin_pe_get_claimed_authentihash (RzBinPEObj *bin) |
static ut64 | buf_fwd_hash (const ut8 *buf, ut64 size, void *user) |
char *PE_() | bin_pe_compute_authentihash (RzBinPEObj *bin) |
const char *PE_() | bin_pe_get_authentihash (RzBinPEObj *bin) |
int PE_() | bin_pe_is_authhash_valid (RzBinPEObj *bin) |
int PE_() | bin_pe_init_security (RzBinPEObj *bin) |
void PE_() | free_security_directory (Pe_image_security_directory *security_directory) |
char* PE_() bin_pe_compute_authentihash | ( | RzBinPEObj * | bin | ) |
Definition at line 21 of file pe_security.c.
References buf_fwd_hash(), free(), benchmark::md, NULL, PE_, PE_DWord, PE_IMAGE_DIRECTORY_ENTRY_SECURITY, rz_buf_fwd_scan(), rz_buf_size(), rz_hash_cfg_final(), rz_hash_cfg_free(), rz_hash_cfg_get_result(), rz_hex_bin2strdup(), rz_str_replace_char(), and strdup().
Referenced by bin_pe_get_authentihash().
const char* PE_() bin_pe_get_authentihash | ( | RzBinPEObj * | bin | ) |
Definition at line 60 of file pe_security.c.
References bin_pe_compute_authentihash(), and PE_.
Referenced by bin_pe_init_security().
|
static |
Definition at line 9 of file pe_security.c.
References rz_asn1_bin_t::binary, rz_asn1_bin_t::length, NULL, and rz_hex_bin2strdup().
Referenced by bin_pe_init_security().
int PE_() bin_pe_init_security | ( | RzBinPEObj * | bin | ) |
Definition at line 71 of file pe_security.c.
References Pe_certificate::bCertificate, bin_pe_get_authentihash(), bin_pe_get_claimed_authentihash(), Pe_image_security_directory::certificates, Pe_certificate::dwLength, free(), Pe_image_security_directory::length, malloc(), NULL, PE_, PE_DWord, PE_IMAGE_DIRECTORY_ENTRY_SECURITY, PE_WIN_CERT_TYPE_PKCS_SIGNED_DATA, realloc(), rz_buf_read_at(), rz_buf_read_le16_at, rz_buf_read_le32_at, RZ_FREE, RZ_LOG_ERROR, RZ_LOG_INFO, RZ_NEW0, rz_pkcs7_parse_cms(), rz_pkcs7_parse_spcinfo(), autogen_x86imm::tmp, Pe_certificate::wCertificateType, and Pe_certificate::wRevision.
Referenced by bin_pe_init().
int PE_() bin_pe_is_authhash_valid | ( | RzBinPEObj * | bin | ) |
Definition at line 67 of file pe_security.c.
Definition at line 17 of file pe_security.c.
References rz_hash_cfg_update().
Referenced by bin_pe_compute_authentihash().
void PE_() free_security_directory | ( | Pe_image_security_directory * | security_directory | ) |