openssl-cmac 2.0.1 → 2.0.2

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: 58e850b8ce1e363d8f266ca946ed468f04a9161bd7eb971952aed8bbbe7f710e
4
- data.tar.gz: f0e70e6e6aea806c6c84a79f7dc08dfc8cd943d25252e58b624151041eb2a829
3
+ metadata.gz: 16491a689fe7f5d899159d3762cd7618f3150bc2a1ecede264731ef308a5d876
4
+ data.tar.gz: b4df90a8d51cdba9649101217df4978181a93ea680ac67c3b6cd0b15939e55e7
5
5
  SHA512:
6
- metadata.gz: e9ad7b7a1d120025675cecd4f58839f295614bde15174a96581f055c064b418b33a40e54c99faa76776a2da93c1dee6765c2d8c21dbfe1463a85a1fcfd153fd6
7
- data.tar.gz: 9769d44ea03d292b490a16cf352a47dd42fce4ff0fe87426bd0efa5ffd56c20cd1ef64282233328edaba7a0a0a9b180266763aa6c6d721e1e2078725b4c4fcda
6
+ metadata.gz: 0b26a6dd073ebdef048598ccec4a44ab0fe7510a785a5dc656cc28760dfa596b7f7e358abd3d1940709687dc1e4ad730348198a0bd9174df166636055715b2fc
7
+ data.tar.gz: 82292fbd9b159ca48b8062093c8a6c093960b52813717729a38648f880ad84c2b9843e91b5d42782e91ee51a38dd05288ea76b3bdbe4e8b4552667144a540d5b
@@ -1,5 +1,5 @@
1
1
  module OpenSSL
2
2
  class CMAC
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
data/lib/openssl/cmac.rb CHANGED
@@ -126,6 +126,7 @@ module OpenSSL
126
126
  @keys.clear
127
127
  @buffer.clear
128
128
  @cipher.reset unless @keys[0].nil?
129
+ @cipher.iv = "\x00" * 16
129
130
  @cipher.encrypt
130
131
  self
131
132
  end
@@ -160,6 +161,7 @@ module OpenSSL
160
161
  @cipher.reset
161
162
  @cipher.encrypt
162
163
  @cipher.key = @keys[0]
164
+ @cipher.iv = "\x00" * 16
163
165
  # Each block is 16-bytes and the last block will always be PKCS#7 padding
164
166
  # which we want to discard. Take the last block prior to the padding for
165
167
  # the MAC.
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl-cmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim M. Chechel
8
8
  - Lars Schmertmann
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-20 00:00:00.000000000 Z
12
+ date: 2022-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -35,22 +35,22 @@ dependencies:
35
35
  name: rdoc
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 4.3.0
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
40
  version: '4.3'
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 4.3.0
44
44
  type: :development
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 4.3.0
51
48
  - - "~>"
52
49
  - !ruby/object:Gem::Version
53
50
  version: '4.3'
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 4.3.0
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: yard
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -75,22 +75,22 @@ dependencies:
75
75
  name: rubocop
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: 0.50.0
81
78
  - - "~>"
82
79
  - !ruby/object:Gem::Version
83
80
  version: '0.50'
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 0.50.0
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 0.50.0
91
88
  - - "~>"
92
89
  - !ruby/object:Gem::Version
93
90
  version: '0.50'
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 0.50.0
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: test-unit
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -171,8 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubygems_version: 3.0.3
175
- signing_key:
174
+ rubygems_version: 3.3.15
175
+ signing_key:
176
176
  specification_version: 4
177
177
  summary: RFC 4493, 4494, 4615 - CMAC
178
178
  test_files: