From 1e9105ae24897a62babd002b82e974bcdf63dbdf Mon Sep 17 00:00:00 2001 From: kokke Date: Fri, 1 Dec 2017 01:38:46 +0100 Subject: Update aes.h --- aes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aes.h') diff --git a/aes.h b/aes.h index 943dd8b..8100fba 100644 --- a/aes.h +++ b/aes.h @@ -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) -- cgit v1.2.3