From ba795cdc9e618b6733bd7d932960cb9fde5e58fb Mon Sep 17 00:00:00 2001 From: kokke Date: Tue, 19 Dec 2017 02:04:39 +0100 Subject: Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e3f3d89..3f2b903 100644 --- a/README.md +++ b/README.md @@ -8,18 +8,18 @@ The API is very simple and looks like this (I am using C99 ``-style an ```C /* Initialize context calling one of: */ -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(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: */ -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 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); +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_CBC_encrypt_buffer(struct AES_ctx *ctx, uint8_t* buf, uint32_t length); -void AES_CBC_decrypt_buffer(struct AES_ctx *ctx, uint8_t* buf, uint32_t length); +void AES_CBC_encrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, uint32_t length); +void AES_CBC_decrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, uint32_t length); /* Same function for encrypting as for decrypting in CTR mode */ void AES_CTR_xcrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, uint32_t length); -- cgit v1.2.3