mirror of
https://github.com/sheumann/65816-crypto.git
synced 2024-06-09 02:29:26 +00:00
Crypto algorithm implementations for the 65816
2d8c85bd98
SHA-1 has five state variables (a,b,c,d,e), and each iteration of the core loop cycles their values around (e.g. a->b), in some cases with modifications. By unrolling the loop by a factor of five and appropriately substituting the values operated on in each iteration, we can avoid actually doing the copies implied by this cycling, which gives a fairly significant performance gain. |
||
---|---|---|
aes.asm | ||
aes.h | ||
aes.macros | ||
aesalign.asm | ||
aestest.c | ||
rotate.macros | ||
sha1.asm | ||
sha1.h | ||
sha1.macros | ||
sha1test.c |