Missing attribute pe.signatures[0].content_info.digest
sim0nx opened this issue · comments
Georges Toth commented
Describe the bug
With lief <0.14.0 it was possible to get the authentihash using that attribute (also still in the docs https://lief-project.github.io/doc/stable/tutorials/13_pe_authenticode.html#exploring-pkcs-7-signature).
This no longer works though.
The former code was defined here:
To Reproduce
Steps to reproduce the behavior:
import lief
pe = lief.parse("avast_free_antivirus_setup_online.exe")
signature = pe.signatures[0]
# Print the authentihash value embedded in the signature
print(signature.content_info.digest.hex())
> AttributeError: 'ContentInfo' object has no attribute 'digest'
Expected behavior
Return the authentihash as was previously the case.
Environment (please complete the following information):
- System and Version : debian 12
- Target format (PE, ELF, Mach-O): PE
- LIEF commit version: 0.14.0-16962f2f
NOTICE
If the issue does not contain enough information to be reproduced,
it will be flagged as incomplete
and closed.
/NOTICE
Georges Toth commented
Thanks @romainthomas