README.md in aead-1.8.0 vs README.md in aead-1.8.1

- old
+ new

@@ -21,11 +21,11 @@ ```ruby require 'aead' # currently, AES-256-GCM and AES-256-CTR-HMAC-SHA-256 are supported mode = AEAD::Cipher.new('AES-256-GCM') -key = cipher.generate_key -nonce = cipher.generate_nonce +key = mode.generate_key +nonce = mode.generate_nonce cipher = mode.new(key) aead = cipher.encrypt(nonce, 'authentication data', 'plaintext') plaintext = cipher.decrypt(nonce, 'authentication data', aead) ```