Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ellectroid/sha-256-little-endian-self-contained

SHA-256 Little Endian Self-Contained
https://github.com/ellectroid/sha-256-little-endian-self-contained

Last synced: about 22 hours ago
JSON representation

SHA-256 Little Endian Self-Contained

Awesome Lists containing this project

README

        

# SHA-256-Little-Endian-Self-Contained

Basic self-contained implementation of SHA-256.

Requirements: -fno-strict-aliasing

Properties:
- Implementation for little-endian system
- Only byte data access, no memory alignment required
- All memory, including for constants, is allocated on stack on function call (easily modifiable)
- 32-bit input data byte length (easily modifiable)

Possible improvement (?): not use uint32_t Hash[8] at all and use the Output itself as a hash buffer.