https://github.com/jocover/sha256-armv8
ARMv8 SHA256 instructions implementation in C
https://github.com/jocover/sha256-armv8
Last synced: 2 months ago
JSON representation
ARMv8 SHA256 instructions implementation in C
- Host: GitHub
- URL: https://github.com/jocover/sha256-armv8
- Owner: jocover
- Created: 2016-04-28T07:31:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-28T07:48:24.000Z (about 9 years ago)
- Last Synced: 2025-03-24T19:22:24.685Z (3 months ago)
- Language: Assembly
- Size: 2.93 KB
- Stars: 29
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SHA-256
This is a very basic implementation of a SHA-256 hash according to the [FIPS
180-4 standard](http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf)
in C. I did it for educational purposes, the code is not optimized at all, but
(almost) corresponds line by line to the standard.The algorithm to process a small block of data is quite simple and very well
described in the standard. I found that correctly implementing the padding is
much harder.It does not have any dependencies (except for the C standard library of course)
and can be compiled with `make`. When `sha256sum` is installed, a short test can
be run with `make test`.Usage:
```
./main
```