hash-library icon indicating copy to clipboard operation
hash-library copied to clipboard

Portable C++ hashing library

Results 9 hash-library issues
Sort by recently updated
recently updated
newest added

It seems OSX has no `endian.h`, but it also looks like it is not needed. Possible solution to make `sha256.cpp` compile on OSX: Replace https://github.com/stbrumme/hash-library/blob/a8a88f8acbdd97b854b6ac61e53177dc7870f32f/sha256.cpp#L9-L12 with ```c++ #if !defined(_MSC_VER) &&...

This commit fixes ```bash keccak.cpp: In member function ‘void Keccak::processBlock(const void*)’: keccak.cpp:155:16: warning: declaration of ‘one’ shadows a previous local [-Wshadow] 155 | uint64_t one = m_hash[j]; | ^~~ keccak.cpp:122:14:...

``` hash-library/keccak.cpp:57: litte ==> little hash-library/sha3.cpp:59: litte ==> little hash-library/sha256.cpp:133: secound ==> second hash-library/sha256.cpp:235: eigth ==> eighth, eight ```

This fixes following warning from GCC ```bash ../hash-library/sha256.cpp: In member function ‘void SHA256::processBlock(const void*)’: ../hash-library/sha256.cpp:110:27: warning: cast from type ‘const void*’ to type ‘uint32_t*’ {aka ‘unsigned int*’} casts away qualifiers...

This is not an issue per se, but I couldn't think of another way to approach this. I was looking for a "small" (i.e. not libopenssl) hashing library in C,...

Hello, This PR addresses the following issues. 1. In several files, the `swap(...)` function has used `MSC_VER` instead of `_MSC_VER` which will lead them to fall back to the manual...

Have the following sanitizer output: ``` md5.cpp:299:23: runtime error: index 120 out of bounds for type 'unsigned char [64]' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior md5.cpp:299:23 in ``` This commit fixes that.