lib/lockbox/aes_gcm.rb in lockbox-0.2.5 vs lib/lockbox/aes_gcm.rb in lockbox-0.3.0

- old
+ new

@@ -1,5 +1,5 @@ -class Lockbox +module Lockbox class AES_GCM def initialize(key) raise ArgumentError, "Key must be 32 bytes" unless key && key.bytesize == 32 raise ArgumentError, "Key must be binary" unless key.encoding == Encoding::BINARY