Skip to main content

sha256 library with midstate

Project description

This is a SHA-256 implementation that allows for setting and getting the mid-state information. This was needed to enable repeated hashing against a (potentially large) fixed prefix.

Performance

The original version of this was written in Python. While the Cython version will be much faster, this is not a highly optimized library and relies on the native C compiler for optimization.

Cythonize

This repository does not contain the generated C code from Cython. To recreate the C code run the cytnonize step via:

python setup.py sdist

Authors

The original author was Thomas Dixon for a python version of this code. Sam Rushing added the midstate access and converted it to Cython. Nigel Drego added the context state setter/getter.

LICENSE

This is licensed under the MIT license based on the original license from Thomas Dixon.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sha256-0.3.tar.gz (55.1 kB view details)

Uploaded Source

File details

Details for the file sha256-0.3.tar.gz.

File metadata

  • Download URL: sha256-0.3.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for sha256-0.3.tar.gz
Algorithm Hash digest
SHA256 7bf2d287c2df10af1b7e6830340beeb1a79edc0433740f2e4fc68d8c1d06ab95
MD5 6086c02efac6c96d20b745b50be311de
BLAKE2b-256 5fe9dab944bd1bf40931f12cf4995b538580810c21f89116668f3546a62cebe5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page