summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha256.c
diff options
context:
space:
mode:
authorjsing <>2023-05-27 09:18:17 +0000
committerjsing <>2023-05-27 09:18:17 +0000
commit5a32256b8c814723cdf8b800d976a1cc155f50cd (patch)
treea08cff9b4e35549320f4459a98e3dfc282dbdb90 /src/lib/libcrypto/sha/sha256.c
parent554239a1a00c924c930a5c40df5b85d0b4c0e1a4 (diff)
downloadopenbsd-5a32256b8c814723cdf8b800d976a1cc155f50cd.tar.gz
openbsd-5a32256b8c814723cdf8b800d976a1cc155f50cd.tar.bz2
openbsd-5a32256b8c814723cdf8b800d976a1cc155f50cd.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/libcrypto/sha/sha256.c')
0 files changed, 0 insertions, 0 deletions