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 +4 -4
- data/lib/openssl/ccm/version.rb +1 -1
- data/lib/openssl/ccm.rb +2 -0
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35a41e57bff48e3beb7088edbd3393da7b3406495d2ba454e8677c4841973f3f
|
4
|
+
data.tar.gz: 10f313e08c40b07386fd32435656bb143fefb361c0bf512f693573caf76dabfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d0a59af7d0492c0a6f70f1c10780233d6f631a35b8a839e5645dd39b00424098564483e9538b2da2aa6d72e34d872edd4c8c6298b74bad809def79f0be8bc8f
|
7
|
+
data.tar.gz: 8a6f4c08e263878b68eb5ac905d9fa34e997960376bf518b8fe792f0779db2b7a1edb2802dab22ef46545519ee00d25ac598a7419021fd4544bbe581d498d44a
|
data/lib/openssl/ccm/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
188
|
-
|
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/
|
195
|
-
- test/
|
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/
|
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
|