diff options
author | jsing <> | 2023-05-27 09:18:17 +0000 |
---|---|---|
committer | jsing <> | 2023-05-27 09:18:17 +0000 |
commit | fce75c36c6fda1fa1488c600abe6490c27e90d75 (patch) | |
tree | a08cff9b4e35549320f4459a98e3dfc282dbdb90 /src/lib/libc/string/strcmp.c | |
parent | 79242671d4fc62c0520403a6875e4c4254611365 (diff) | |
download | openbsd-fce75c36c6fda1fa1488c600abe6490c27e90d75.tar.gz openbsd-fce75c36c6fda1fa1488c600abe6490c27e90d75.tar.bz2 openbsd-fce75c36c6fda1fa1488c600abe6490c27e90d75.zip |
Clean up alignment handling for SHA-512.
This recommits r1.37 of sha512.c, however uses uint8_t * instead of void *
for the crypto_load_* functions and primarily uses const uint8_t * to track
input, only casting to const SHA_LONG64 * once we know that it is suitably
aligned. This prevents the compiler from implying alignment based on type.
Tested by tb@ and deraadt@ on platforms with gcc and strict alignment.
ok tb@
Diffstat (limited to 'src/lib/libc/string/strcmp.c')
0 files changed, 0 insertions, 0 deletions