summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2017-12-06 02:43:59 +0100
committerGitHub <noreply@github.com>2017-12-06 02:43:59 +0100
commitdc2f2798e2e0448813569c0a1e10c1806dceb4fa (patch)
treece22424232f91705a7b0d30fd54e0daa0e46215f
parentUpdate README.md (diff)
downloadtiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.tar
tiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.tar.gz
tiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.tar.bz2
tiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.tar.lz
tiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.tar.xz
tiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.tar.zst
tiny-AES-c-dc2f2798e2e0448813569c0a1e10c1806dceb4fa.zip
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index febaefa..10126ac 100644
--- a/README.md
+++ b/README.md
@@ -26,8 +26,8 @@ void AES_CTR_xcrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, uint32_t length);
```
Note:
- * We don't provide any padding so all buffers should be mutiple of 16 bytes if you need padding we rocomend https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS7
- * ECB mode is considered unsafe and is not implemented in streaming mode. If you realy need this just call the function for every block of 16 bytes you need encrypted. See https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Electronic_Codebook_(ECB) for more details
+ * No padding is provided so all buffers should be mutiples of 16 bytes. For padding [PKCS7](https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS7) is recommendable.
+ * ECB mode is considered unsafe for most uses and is not implemented in streaming mode. If need this mode, call the function for every block of 16 bytes you need encrypted. See [wikipedia's article on ECB](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Electronic_Codebook_(ECB)) for more details.
You can choose to use any or all of the modes-of-operations, by defining the symbols CBC, CTR or ECB. See the header file for clarification.
@@ -47,7 +47,7 @@ GCC size output when only CTR mode is compiled for ARM:
text data bss dec hex filename
1203 0 0 1203 4b3 aes.o
-.. and when compiling for the THUMB instruction set, we end up just above 1K in code size.
+.. and when compiling for the THUMB instruction set, we end up just below 1K in code size.
$ arm-none-eabi-gcc -Os -mthumb -DCBC=0 -DECB=0 -DCTR=1 -c aes.c
$ size aes.o