Update aes.c
This commit is contained in:
2
aes.c
2
aes.c
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user