diff options
author | kokke <spam@rowdy.dk> | 2021-01-06 02:36:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 02:36:16 +0100 |
commit | c0ca6f5857f840bd3091bf99cd00029f152e3dac (patch) | |
tree | 1c0c1d71413aa819f78a37764cab3b8c48f45f5f | |
parent | Merge pull request #173 from Youw/master (diff) | |
download | tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.tar tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.tar.gz tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.tar.bz2 tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.tar.lz tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.tar.xz tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.tar.zst tiny-AES-c-c0ca6f5857f840bd3091bf99cd00029f152e3dac.zip |
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,11 +18,11 @@ void AES_ctx_set_iv(struct AES_ctx* ctx, const uint8_t* iv); void AES_ECB_encrypt(const struct AES_ctx* ctx, uint8_t* buf); void AES_ECB_decrypt(const struct AES_ctx* ctx, 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, size_t length); +void AES_CBC_decrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, size_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); +void AES_CTR_xcrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, size_t length); ``` Note: |