diff options
author | kokke <spam@rowdy.dk> | 2017-12-01 01:40:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-01 01:40:05 +0100 |
commit | bdfd794b8051c500c2ceb9aaed110dc1abc94bef (patch) | |
tree | 4ac19afd88a46aa95344288a4cae250efb21a1fb | |
parent | Update aes.c (diff) | |
download | tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.tar tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.tar.gz tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.tar.bz2 tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.tar.lz tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.tar.xz tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.tar.zst tiny-AES-c-bdfd794b8051c500c2ceb9aaed110dc1abc94bef.zip |
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,8 @@ void AES_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t* output); void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv); void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv); -/* Symmetrical operation: same function for encrypting as for decrypting */ -void AES_CTR_xcrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv); +/* Symmetrical operation: same function for encrypting as for decrypting. Note any IV/nonce should never be reused with the same key */ +void AES_CTR_xcrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* nonce); ``` |