Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
30c47c71
Commit
30c47c71
authored
Jul 12, 2014
by
kokke
Browse files
Update README.md
parent
6c507b37
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
30c47c71
...
@@ -9,7 +9,7 @@ void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output);
...
@@ -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 (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,6 +27,14 @@ GCC size output when compiled for ARM:
...
@@ -27,6 +27,14 @@ 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.
$ arm-none-eabi-gcc -mthumb -Os -c aes.c
$ size aes.o
text data bss dec hex filename
1883 0 204 2087 827 aes.o
I am using Mentor Graphics free ARM toolchain:
I am using Mentor Graphics free ARM toolchain:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment