diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-30 02:16:27 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-30 02:16:27 +0100 |
commit | c09cd2882c7c15600c74a9c12f104b80203f562c (patch) | |
tree | 3cee48848e76dd7182beceb870cffede58d29f0a /sys/src/libsec/port/sha1block.c | |
parent | d51d54442e9d28c95b59b0e633b4b4c2755c3240 (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