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
6bc9b553
Unverified
Commit
6bc9b553
authored
Dec 06, 2017
by
kokke
Committed by
GitHub
Dec 06, 2017
Browse files
Update README.md
parent
dc2f2798
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
6bc9b553
...
...
@@ -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
/
*
Init
ialize 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);
/
/t
hen
do
/
* T
hen
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);
...
...
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