aes_key reads correct number of bytes