Skip to content

Commit

Permalink
+ comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmnt committed Dec 1, 2021
1 parent 0d50f1b commit 425386f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion aes.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
/*
derived from https://github.com/kokke/tiny-AES-c and other public domain sources
Derived from https://github.com/kokke/tiny-AES-c and other public domain sources.
This implementation is quite special.
It tries hard to do all the processing on processor registers
and avoid using RAM at all, even stack. The only thing in RAM is the (in-place) mutated 16-byte
encryption state.
The key material is loaded on demand, keys are not pre-scheduled but expanded in place.
The user is resposible for providing aes128_load_km/aes128_save_km accessors to 8 words
of the key storage.
The storage may be implemented in some hardware registers (think TRESOR of linux-x86).
Yes, this AES is quite slow :-)
*/

Expand Down

0 comments on commit 425386f

Please sign in to comment.