diff options
author | kokke <spam@rowdy.dk> | 2017-12-01 01:38:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-01 01:38:46 +0100 |
commit | 1e9105ae24897a62babd002b82e974bcdf63dbdf (patch) | |
tree | 595de1172a0c294c4ac86a1eeb5af2d3edf4843a | |
parent | Update README.md (diff) | |
download | tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.tar tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.tar.gz tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.tar.bz2 tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.tar.lz tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.tar.xz tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.tar.zst tiny-AES-c-1e9105ae24897a62babd002b82e974bcdf63dbdf.zip |
-rw-r--r-- | aes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,8 +45,8 @@ void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, co #if defined(CTR) && (CTR == 1) -/* 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); #endif // #if defined(CTR) && (CTR == 1) |