Re: [Cryptography-dev] Parsing DER from PE File

2018-12-20 Thread Paul Kehrer
Could you give us an example (in hex or b64 or something) so we can easily reproduce? Make sure any certs you're giving us don't contain sensitive data of course. -Paul On December 19, 2018 at 11:55:04 PM, Robert Simmons ([email protected]) wrote: I've asked this question on Stack Overflow he

Re: [Cryptography-dev] Parsing DER from PE File

2018-12-20 Thread Robert Simmons
Definitely. I've attached the DER data as extracted from the PE file using the following code: pe = pefile.PE(fname) pe.parse_data_directories(directories=[pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_SECURITY']]) sigoff = 0 siglen = 0 for s in pe.__structures__: if s.name == 'IMAGE_DIRECTORY