Commit Graph

11 Commits

Author SHA1 Message Date
Stephen Heumann
6a1eeb40ea Update to newer ISC license wording with "and/or". 2024-06-26 20:46:58 -06:00
Stephen Heumann
0386f928ff Add comments and copyright notices, and rename chunk to block. 2017-07-01 17:53:49 -05:00
Stephen Heumann
8b17a15ada Add implementations of the SHA-1 update and finalize operations.
The definition of the context structure is also cleaned up a bit.
2017-06-30 23:55:03 -05:00
Stephen Heumann
97fc1ce981 Small cleanups in SHA-1. 2017-06-30 13:23:29 -05:00
Stephen Heumann
6c1d703b84 Don't duplicate identical code for the last three schedule computation phases.
This shrinks code size and is probably faster with accelerators due to caching.
2017-06-30 12:49:51 -05:00
Stephen Heumann
d97e0c0153 Don't update index value in each unrolled loop iteration. 2017-06-30 00:52:25 -05:00
Stephen Heumann
aab47e38e7 Compute SHA-1 message schedule 20 elements at a time, reusing storage.
The reduces the storage needed and boosts performance, since the whole schedule is contained in the direct page.
2017-06-29 22:22:06 -05:00
Stephen Heumann
7182fc5817 Use separate loops for the four parts of the SHA-1 computation. 2017-06-29 20:51:36 -05:00
Stephen Heumann
ad4e0a0dd5 More SHA-1 optimizations. 2017-06-29 20:16:22 -05:00
Stephen Heumann
13654c0888 Small optimizations in SHA-1 computation. 2017-06-29 19:52:52 -05:00
Stephen Heumann
a519776847 Add implementation of the basic block-processing function for SHA-1. 2017-06-29 16:54:49 -05:00