openssl-ccm 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94f0f2ac744cac26cf3f3fe5ec47b676d656d0a3d57eaef6ac5af2e5aceade69
4
- data.tar.gz: 0c5e4bee394768df4c0d7f88edd4c297513e420c8bfb2dd10f4ddbe885fa552f
3
+ metadata.gz: 35a41e57bff48e3beb7088edbd3393da7b3406495d2ba454e8677c4841973f3f
4
+ data.tar.gz: 10f313e08c40b07386fd32435656bb143fefb361c0bf512f693573caf76dabfa
5
5
  SHA512:
6
- metadata.gz: 3ec73e24140d4702b6a5debd39d5ef77dd1815d9c5a9bccc586350474ddbe971f02727261deb1fe320596662847cd2598b08ac652ce8b42c279bbeceb67df5fb
7
- data.tar.gz: f6e5f8c3a7380b21cab77f9ca1af26635c9564fc4f0b05df7b4b537bad6b96e9d4bb622efd796d9708d2dd1119891c7e6fb84bd6d423795fe41fa3b54ee9d24a
6
+ metadata.gz: 8d0a59af7d0492c0a6f70f1c10780233d6f631a35b8a839e5645dd39b00424098564483e9538b2da2aa6d72e34d872edd4c8c6298b74bad809def79f0be8bc8f
7
+ data.tar.gz: 8a6f4c08e263878b68eb5ac905d9fa34e997960376bf518b8fe792f0779db2b7a1edb2802dab22ef46545519ee00d25ac598a7419021fd4544bbe581d498d44a
@@ -1,5 +1,5 @@
1
1
  module OpenSSL
2
2
  class CCM
3
- VERSION = '1.2.2'
3
+ VERSION = '1.2.3'
4
4
  end
5
5
  end
data/lib/openssl/ccm.rb CHANGED
@@ -119,6 +119,7 @@ module OpenSSL
119
119
  @cipher.reset
120
120
  @cipher.encrypt
121
121
  @cipher.key = @key
122
+ @cipher.iv = "\x00" * 16
122
123
 
123
124
  b_0 = Array.new(8, 0)
124
125
  b_0[0] = (additional_data.empty? ? 0 : 64) \
@@ -164,6 +165,7 @@ module OpenSSL
164
165
  @cipher.reset
165
166
  @cipher.encrypt
166
167
  @cipher.key = @key
168
+ @cipher.iv = "\x00" * 16
167
169
  @cipher.update(a.pack('C*'))
168
170
  end
169
171
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl-ccm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Schmertmann
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-08 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -184,25 +184,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  requirements: []
187
- rubyforge_project:
188
- rubygems_version: 2.7.7
189
- signing_key:
187
+ rubygems_version: 3.3.15
188
+ signing_key:
190
189
  specification_version: 4
191
190
  summary: RFC 3610 - CCM
192
191
  test_files:
193
192
  - test/test_ccm.rb
194
- - test/data_3-2_e
195
- - test/data_3-4_e
196
- - test/data_3-1_e
197
- - test/data_3
193
+ - test/data_1
194
+ - test/data_1-1_e
198
195
  - test/data_1-2_e
199
- - test/data_2-4_e
200
- - test/data_1-4_e
201
196
  - test/data_1-3_e
202
- - test/data_2-2_e
203
- - test/data_2-3_e
204
- - test/data_1
197
+ - test/data_1-4_e
205
198
  - test/data_2
206
- - test/data_1-1_e
207
199
  - test/data_2-1_e
200
+ - test/data_2-2_e
201
+ - test/data_2-3_e
202
+ - test/data_2-4_e
203
+ - test/data_3
204
+ - test/data_3-1_e
205
+ - test/data_3-2_e
208
206
  - test/data_3-3_e
207
+ - test/data_3-4_e