fix aes ctr cast

This commit is contained in:
toddouska 2012-01-09 09:53:37 -08:00
parent 8c63ac1c4d
commit 07ed8a5a84
1 changed files with 1 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ void AesCtrEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
word32 blocks = sz / AES_BLOCK_SIZE;
while (blocks--) {
AesEncrypt(aes, aes->reg, out);
AesEncrypt(aes, (byte*)aes->reg, out);
IncrementAesCounter((byte*)aes->reg);
xorbuf(out, in, AES_BLOCK_SIZE);