| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
CMake 3.0 is the last release to require to be able to build with
Borland.
|
|
|
|
|
|
|
|
|
|
|
|
| |
GCC warns:
dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
on constructs like
*(sha_word64*)&var =
so use memcpy to perform such assignments instead.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Convert lines of the form
MEMSET_BZERO(context, sizeof(context));
to the correct form
MEMSET_BZERO(context, sizeof(*context));
as suggested by Clang.
|
|
|
|
|
| |
The code does contain a cast that increases alignment but only for
pointers into structures known to be sufficiently aligned.
|
|
|
|
|
|
|
|
|
|
|
| |
Add a cast to lines converting "uint64_t" to "unsigned int" that are
known safe due to use of modulus with a small integer. This avoids
compiler warnings such as
conversion from 'cm_sha2_uint64_t' to 'unsigned int',
possible loss of data
from MSVC.
|
|
|
|
|
| |
The sha2 implementation performs cleanup on local variables. Suppress
the warning instead of fixing it to minimize modification.
|
|
|
|
|
| |
Define SHA_UINT32_C and SHA_UINT64_C using the KWIML versions.
Use them in place of hard-coded UL and ULL constant suffixes.
|
|
|
|
| |
Fix old-style declarations in the original code.
|
|
|
|
| |
These are more portable than those named in the original sha2 code.
|
|
|
|
|
|
|
|
|
| |
Update cm_sha2.[hc] from sha2.[hc] in "sha2-1.1-ALPHA.tgz" downloaded
today from
http://www.aarongifford.com/computers/sha.html
with trivial whitespace cleanup. This adds SHA-224 support.
|
|
Copy cm_sha2.[hc] from sha2.[hc] in "sha2-1.0.tar.gz" downloaded today
from
http://www.aarongifford.com/computers/sha.html
with trivial whitespace cleanup. Also fix #include to account for
rename.
|