Ruby AES implementation boilerplate