summaryrefslogtreecommitdiff
path: root/sys/src/libsec/port/sha1block.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-11-30 02:16:27 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-11-30 02:16:27 +0100
commitc09cd2882c7c15600c74a9c12f104b80203f562c (patch)
tree3cee48848e76dd7182beceb870cffede58d29f0a /sys/src/libsec/port/sha1block.c
parentd51d54442e9d28c95b59b0e633b4b4c2755c3240 (diff)
libsec: unroll portable sha2block functions
- unroll the loops - rotate the taps on each step, avoiding copies - simplify boolean formulas for Ch() and Maj() this yields arround 40% throughput increase on 32/64bit archs for sha2_256 and sha2_512 on amd64.
Diffstat (limited to 'sys/src/libsec/port/sha1block.c')
0 files changed, 0 insertions, 0 deletions