Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 2.04 KB

README.md

File metadata and controls

38 lines (24 loc) · 2.04 KB

Cryptographic Hash Functions

hash Go Reference codecov OpenSSF Best Practices OpenSSF Scorecard

  import "github.com/bytemare/hash"

This package exposes a simple API to seamlessly use a variety of cryptographic functions. It aims at minimum code adaptation in your code, and easy parameterization. It completely relies on built-ins.

It attempts to offer a single API for fixed and extensible-output functions, Merkle–Damgård construction (e.g. SHA-1, SHA-2), sponge functions (e.g. SHA-3, SHAKE), and HAIFA structures (e.g. Blake2).

  • Implements the hash.Hash interface
  • HMAC and HKDF for fixed output size hash functions
  • useful metadata like block size, security, and output size when relevant.

Documentation Go Reference

You can find the documentation and usage examples in the package doc and the project wiki .

Versioning

SemVer is used for versioning. For the versions available, see the tags on the repository.

Contributing

Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.