A software implementation of SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 cryptographic hash functions for securing data with message authentication codes.
sha_digest offers two options for utilization. Firstly, you can use the result as a library to be linked with your programs. Doing this provides access to all of the above hashing algorithms. Alternatively, you can directly use the source files that implement one or more of these algorithms within your programs.
The implementation is written in standard compliant C (ANSI C89), is thread-safe, and should work independently of the underlying hardware. This means it can operate on systems with 32-bit, 64-bit, or even 128-bit architecture, and across different operating systems.
However, the creator of the implementation does issue a warning: while they have implemented the SHA algorithms to the best of their abilities and in line with the standard cited above, they are not claiming their implementations to be error-free. Therefore, if usage is intended for cryptographic applications, it is strongly recommended that the code be carefully reviewed and tested before employing it.
Version 2.1: N/A