Skip to content

Add hashlib.new(), detect and use uhashlib native code versions when possible #236

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

Closed
wants to merge 2 commits into from

Conversation

doc-hex
Copy link

@doc-hex doc-hex commented Nov 23, 2017

See discussion in #235

  • adds hashlib.new() which looks up any hash function by name
  • uses uhashlib version of each hash function if it is defined there
  • exports sha1 if it's in uhashlib (no pure implementation)
  • any future hash function can be added to uhashlib and will be available via hashlib.new()

@doc-hex
Copy link
Author

doc-hex commented Nov 23, 2017

I didn't change the version number because it looked kinda complex... sorry.

@pfalcon
Copy link
Contributor

pfalcon commented Jan 20, 2018

Redone somewhat differently in 175634b. Thanks for giving it a try.

@pfalcon pfalcon closed this Jan 20, 2018
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.

2 participants