onelogin/aead — pull request #2 by shawnjgoff (2013-07-03 19:40:11+00:00)
Title: fix example: `cipher` doesn't exist yet

We are calling `cipher.generate_key` and `cipher.generate_nonce`. There is nothing called `cipher` at that point. Those methods are on our `mode` object, which is the class for the specific algorithm we requested with `AEAD::Cipher.new`.