mirror of https://github.com/wolfSSL/wolfssl
fix aes ctr cast
This commit is contained in:
parent
8c63ac1c4d
commit
07ed8a5a84
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue