diff options
author | Ihor Dutchak <ihor.youw@gmail.com> | 2020-09-26 18:10:19 +0200 |
---|---|---|
committer | Ihor Dutchak <ihor.youw@gmail.com> | 2020-09-26 18:10:19 +0200 |
commit | 2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1 (patch) | |
tree | a87309683ef89c3176860d195992847839652a12 /aes.h | |
parent | Merge pull request #167 from k6dsp/patch-1 (diff) | |
download | tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.tar tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.tar.gz tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.tar.bz2 tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.tar.lz tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.tar.xz tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.tar.zst tiny-AES-c-2ca3e81f3c065a780d0d66cc8a77faabbb4d62f1.zip |
Diffstat (limited to '')
-rw-r--r-- | aes.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -69,8 +69,8 @@ void AES_ECB_decrypt(const struct AES_ctx* ctx, uint8_t* buf); // Suggest https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS7 for padding scheme // NOTES: you need to set IV in ctx via AES_init_ctx_iv() or AES_ctx_set_iv() // no IV should ever be reused with the same key -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); #endif // #if defined(CBC) && (CBC == 1) @@ -82,7 +82,7 @@ void AES_CBC_decrypt_buffer(struct AES_ctx* ctx, uint8_t* buf, uint32_t length); // Suggesting https://en.wikipedia.org/wiki/Padding_(cryptography)#PKCS7 for padding scheme // NOTES: you need to set IV in ctx with AES_init_ctx_iv() or AES_ctx_set_iv() // no IV should ever be reused with the same key -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); #endif // #if defined(CTR) && (CTR == 1) |