Fixed bugs in AES bindings.