Unverified Commit 6bc9b553 authored by kokke's avatar kokke Committed by GitHub
Browse files

Update README.md

parent dc2f2798
...@@ -7,14 +7,14 @@ You can override the default key-size of 128 bit with 192 or 256 bit by defining ...@@ -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): The API is very simple and looks like this (I am using C99 `<stdint.h>`-style annotated types):
```C ```C
//Init ctx with /* Initialize context calling: */
void AES_init_ctx(struct AES_ctx *ctx,const uint8_t* key); 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); 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); 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_encrypt(struct AES_ctx *ctx, const uint8_t* buf);
void AES_ECB_decrypt(struct AES_ctx *ctx, const uint8_t* buf); void AES_ECB_decrypt(struct AES_ctx *ctx, const uint8_t* buf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment