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

Reduce MD5 and SHA1 dependency in tests #1074

Merged
merged 2 commits into from
Jan 10, 2022
Merged

Conversation

davidben
Copy link
Contributor

Most of the tests aren't specifically testing MD5 or SHA1. Switch those to a modern hash.

Most of the tests aren't specifically testing MD5 or SHA1. Switch those
to a modern hash.
tests/test_crypto.py Outdated Show resolved Hide resolved
Copy link
Member

@reaperhulk reaperhulk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than my one comment this lgtm.

@@ -64,7 +64,7 @@ def normalize_privatekey_pem(pem):
GOOD_CIPHER = "blowfish"
BAD_CIPHER = "zippers"

GOOD_DIGEST = "SHA1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woof. That's embarrassing.

tests/test_crypto.py Outdated Show resolved Hide resolved
@reaperhulk reaperhulk merged commit fb26edd into pyca:main Jan 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants