summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_versions.c
diff options
context:
space:
mode:
authorjsing <>2023-07-02 14:57:58 +0000
committerjsing <>2023-07-02 14:57:58 +0000
commita67ddc8be74144f826c75dc1fb2893972819b2f3 (patch)
treef910f6b234ed46ca74d6c617718a8656b02e0802 /src/lib/libssl/ssl_versions.c
parentd6b82238500e9e8c9ae56068609fce2a94ef7b96 (diff)
downloadopenbsd-a67ddc8be74144f826c75dc1fb2893972819b2f3.tar.gz
openbsd-a67ddc8be74144f826c75dc1fb2893972819b2f3.tar.bz2
openbsd-a67ddc8be74144f826c75dc1fb2893972819b2f3.zip
Demacro SHA-512.
Use static inline functions instead of macros to implement SHA-512. At the same time, make two key changes - firstly, rather than trying to outsmart the compiler and shuffle variables around, write the algorithm the way it is documented and actually swap the variable contents. Secondly, instead of interleaving the message schedule update and the round, do the full message schedule update first, then process the round. Overall, we get safer and more readable code. Additionally, the compiler can generate smaller and faster code (with a gain of 5-10% across a range of architectures). ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_versions.c')
0 files changed, 0 insertions, 0 deletions