Open GoogleCodeExporter opened 8 years ago
I found out the exactly same thing today. Just the first block is correctly
decrypted.
Original comment by ingo.he...@gmail.com
on 9 Nov 2010 at 9:53
It seems you need to do a loop, such as below. Note, if the incomming data is
not packed to exactly 16 bytes, you are in trouble.
var blocks:uint = message.length / 16;
if (blocks == 0) blocks = 1;
for (var block:uint=0; block < blocks; block++) {
AES.decrypt(message, block*16);
}
Original comment by hob...@gmail.com
on 9 Dec 2010 at 7:54
The solution is to use the Crypto class, which sits above the AES class. See
issue 51 for a working example.
Original comment by hob...@gmail.com
on 10 Dec 2010 at 11:58
Original issue reported on code.google.com by
hob...@gmail.com
on 24 Oct 2010 at 10:07