mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-22 13:31:22 +03:00
Update README.md
This commit is contained in:
parent
30c47c71b8
commit
b23d939114
@ -9,7 +9,7 @@ void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output);
|
|||||||
void AES128_ECB_decrypt(uint8_t* input, uint8_t* key, uint8_t *output);
|
void AES128_ECB_decrypt(uint8_t* input, uint8_t* key, uint8_t *output);
|
||||||
```
|
```
|
||||||
|
|
||||||
The module uses just a bit more than 200 bytes of RAM and 2.5K ROM when compiled for ARM (<2K for Thumb but YMMV).
|
The module uses just a bit more than 200 bytes of RAM and 2.5K ROM when compiled for ARM (~2K for Thumb but YMMV).
|
||||||
|
|
||||||
It is the smallest implementation in C I've seen yet, but do contact me if you know of something smaller (or have improvements to the code here).
|
It is the smallest implementation in C I've seen yet, but do contact me if you know of something smaller (or have improvements to the code here).
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ GCC size output when compiled for ARM:
|
|||||||
2515 0 204 2719 a9f aes.o
|
2515 0 204 2719 a9f aes.o
|
||||||
|
|
||||||
|
|
||||||
.. and when compiling for the THUMB instruction set, we end up at just below 2K in code size.
|
.. and when compiling for the THUMB instruction set, we end up around 2K in code size.
|
||||||
|
|
||||||
$ arm-none-eabi-gcc -mthumb -Os -c aes.c
|
$ arm-none-eabi-gcc -mthumb -Os -c aes.c
|
||||||
$ size aes.o
|
$ size aes.o
|
||||||
|
Loading…
Reference in New Issue
Block a user