Added DCT permuted AES algorithm, fixed bug with testing if chunks span multiple frames due to char casting.