summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/whrlpool
diff options
context:
space:
mode:
authorjsing <>2023-07-02 14:57:58 +0000
committerjsing <>2023-07-02 14:57:58 +0000
commita3cc69bae1783f6f5c92f365722ad4b7cc487c76 (patch)
treef910f6b234ed46ca74d6c617718a8656b02e0802 /src/lib/libcrypto/whrlpool
parentf423c45466f535333e2258196bba9b1045625133 (diff)
downloadopenbsd-a3cc69bae1783f6f5c92f365722ad4b7cc487c76.tar.gz
openbsd-a3cc69bae1783f6f5c92f365722ad4b7cc487c76.tar.bz2
openbsd-a3cc69bae1783f6f5c92f365722ad4b7cc487c76.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/libcrypto/whrlpool')
0 files changed, 0 insertions, 0 deletions