Fixed the key expansion problem, 128-bit encryption should work fine now. Pretty sure that 192 and 256-bit still break. haven't tested them