Ensured the AES methods work with Buffer objects.