summaryrefslogtreecommitdiffstats
path: root/aes.c
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2017-12-01 01:15:33 +0100
committerGitHub <noreply@github.com>2017-12-01 01:15:33 +0100
commit7a4af02bef35f6d6cad308c115ef5fb141d19ad5 (patch)
tree05b6ad4d5932584b06d87adf4381fd068761444d /aes.c
parentUpdate README.md (diff)
downloadtiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.tar
tiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.tar.gz
tiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.tar.bz2
tiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.tar.lz
tiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.tar.xz
tiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.tar.zst
tiny-AES-c-7a4af02bef35f6d6cad308c115ef5fb141d19ad5.zip
Diffstat (limited to '')
-rw-r--r--aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aes.c b/aes.c
index 4d240b0..dd17d46 100644
--- a/aes.c
+++ b/aes.c
@@ -628,7 +628,7 @@ void AES_CTR_xcrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, con
}
}
- output[i] = (input[i]) ^ (buffer[i & 0x0F]);
+ output[i] = (input[i] ^ buffer[(i & 0x0F)]);
}
}