aead 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/aead/cipher.rb +3 -0
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -193,6 +193,9 @@ class AEAD::Cipher
193
193
  private
194
194
 
195
195
  def _verify_key_bytesize(key, key_len)
196
+ raise ArgumentError, 'no key provided' unless
197
+ key
198
+
196
199
  raise ArgumentError, "key must be at least #{key_len} bytes" unless
197
200
  key.bytesize >= key_len
198
201
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aead
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: script
11
11
  cert_chain: []
12
- date: 2012-09-21 00:00:00.000000000 Z
12
+ date: 2012-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: macaddr