summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2017-12-06 02:46:14 +0100
committerGitHub <noreply@github.com>2017-12-06 02:46:14 +0100
commit6bc9b5532b206030b020b3ba2fb6096aa59692a7 (patch)
treeb3c72a6fa08e6fd2fa8b135c93a0a127e36ccc32
parentUpdate README.md (diff)
downloadtiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.tar
tiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.tar.gz
tiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.tar.bz2
tiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.tar.lz
tiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.tar.xz
tiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.tar.zst
tiny-AES-c-6bc9b5532b206030b020b3ba2fb6096aa59692a7.zip
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 10126ac..3ec34f2 100644
--- a/README.md
+++ b/README.md
@@ -7,14 +7,14 @@ You can override the default key-size of 128 bit with 192 or 256 bit by defining
The API is very simple and looks like this (I am using C99 `<stdint.h>`-style annotated types):
```C
-//Init ctx with
+/* Initialize context calling: */
void AES_init_ctx(struct AES_ctx *ctx,const uint8_t* key);
void AES_init_ctx_iv(struct AES_ctx *ctx,const uint8_t* key,const uint8_t* iv);
-//or reset iv at random point
+/* ... or reset IV at random point: */
void AES_ctx_set_iv(struct AES_ctx *ctx,const uint8_t* iv);
-//then do
+/* Then start encrypting and decrypting with the functions below: */
void AES_ECB_encrypt(struct AES_ctx *ctx, const uint8_t* buf);
void AES_ECB_decrypt(struct AES_ctx *ctx, const uint8_t* buf);