Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

androsign: Fix #1031 & #764 - use oscrypto to load public_key instead… #1040

Merged
merged 2 commits into from Apr 27, 2024

Conversation

olokos
Copy link
Contributor

@olokos olokos commented Apr 22, 2024

… of asn1crypto

This commit replaces the outdated:
asn1crypto.keys.PublicKeyInfo().fingerprint call

With the new:
oscrypto.asymmetric.PublicKey().fingerprint call

ValueError/ve is properly excepted and when printed, it shows "Only DSA keys are generated using a hash algorithm, this key is RSA" for RSA signed apk's.

This commit satisfies the:
asn1crypto._errors.APIException: asn1crypto.keys.PublicKeyInfo().fingerprint has been removed, please use oscrypto.asymmetric.PublicKey().fingerprint instead while still keeping the original behavior.

…d public_key instead of asn1crypto

This commit replaces the outdated:
    asn1crypto.keys.PublicKeyInfo().fingerprint call

With the new:
    oscrypto.asymmetric.PublicKey().fingerprint call

ValueError/ve is properly excepted and when printed, it shows "Only DSA keys are generated using a hash algorithm, this key is RSA" for RSA signed apk's.

This commit satisfies the:
`asn1crypto._errors.APIException: asn1crypto.keys.PublicKeyInfo().fingerprint has been removed, please use oscrypto.asymmetric.PublicKey().fingerprint instead`
while still keeping the original behavior.
@erev0s erev0s merged commit bc6490c into androguard:master Apr 27, 2024
1 check passed
@erev0s
Copy link
Collaborator

erev0s commented Apr 27, 2024

Thank you @olokos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants