summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/posix_pty.c
diff options
context:
space:
mode:
authorjsing <>2023-05-27 09:18:17 +0000
committerjsing <>2023-05-27 09:18:17 +0000
commitfce75c36c6fda1fa1488c600abe6490c27e90d75 (patch)
treea08cff9b4e35549320f4459a98e3dfc282dbdb90 /src/lib/libc/stdlib/posix_pty.c
parent79242671d4fc62c0520403a6875e4c4254611365 (diff)
downloadopenbsd-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/stdlib/posix_pty.c')
0 files changed, 0 insertions, 0 deletions