Update aes.c

This commit is contained in:
kokke
2017-12-01 01:20:01 +01:00
committed by GitHub
parent 7a4af02bef
commit 75a0057562

2
aes.c
View File

@@ -614,7 +614,7 @@ void AES_CTR_xcrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, con
if ((i & 0x0F) == 0) if ((i & 0x0F) == 0)
{ {
memcpy(buffer, counter, BLOCKLEN); memcpy(buffer, counter, BLOCKLEN);
state = (state_t *) buffer; state = (state_t*)buffer;
Cipher(); Cipher();
for (j = (BLOCKLEN - 1); j >= 0; --j) for (j = (BLOCKLEN - 1); j >= 0; --j)