tpm-key_attestation 0.4.0 → 0.5.0

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: aa6a84bd8d758948be4dbb8ee8719205c70f049b841027f496c6f5c5c25362b0
4
- data.tar.gz: ca4acf429c5ea3a819c34c8f5ae3053053efa81f1209c4f3152480096562ac1e
3
+ metadata.gz: e5df735cc88867e6fb7c0cdb55698173cfdddec88630b3a69534ba15cd0d9c32
4
+ data.tar.gz: aef2b61ce9a23bd4bd27f9dda61e7719a7eb1914ce29321d3e6ab2c723ffcf16
5
5
  SHA512:
6
- metadata.gz: 7a0a2dea4c9669fc3a7fdb01d1515987fc61974209414b3d3ec30875f799b0c2111ea40cc6f75f86ff2d95ec7975110905b9a36c27b88f0e09dd4ef2f7c90287
7
- data.tar.gz: 0717bc921eba45a9eda3d347f6b70b45c2dfbfc231eba53e2dfddd2ba1f1b22d5fe3fce60ec6f7d79c035813a755e82830c07c64f7750b6e41ede257c3460430
6
+ metadata.gz: 3ec2802f034dfceebd917044760337c4968cb0268b8de970fd977c0f5d5da5ffbaf3c7017b12c3d372d1973d2f4807d1051e90ed28ddb4a8bca52eb15510cf57
7
+ data.tar.gz: 2bba01a0fdcd9baee3af72c2442a388cccde52b31c3e22a2e25ee46cace1edb307d1246ecdb62e11251a3e41d0114318a973f5253bfb8516d940c27dbd134d80
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
 
13
13
  /gemfiles/*.gemfile.lock
14
+ .byebug_history
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.4
3
3
  DisabledByDefault: true
4
4
  Exclude:
5
5
  - "gemfiles/**/*"
data/.travis.yml CHANGED
@@ -9,7 +9,6 @@ rvm:
9
9
  - 2.6.5
10
10
  - 2.5.7
11
11
  - 2.4.9
12
- - 2.3.8
13
12
 
14
13
  gemfile:
15
14
  - gemfiles/openssl_head.gemfile
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.5.0] - 2020-01-23
4
+
5
+ ### Added
6
+
7
+ - `TPM::KeyAttestation#valid?` also checks there's at least a well-formatted key in the attestation
8
+
3
9
  ## [v0.4.0] - 2020-01-20
4
10
 
5
11
  ### Added
@@ -25,6 +31,7 @@
25
31
  - `TPM::EKCertificate` wrapper
26
32
  - `TPM::SAttest` wrapper
27
33
 
34
+ [v0.5.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.4.0...v0.5.0/
28
35
  [v0.4.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.3.0...v0.4.0/
29
36
  [v0.3.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.2.0...v0.3.0/
30
37
  [v0.2.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.1.0...v0.2.0/
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "appraisal", "~> 2.2.0"
9
+ gem "byebug", "~> 11.0"
9
10
  gem "rake", "~> 12.0"
10
11
  gem "rspec", "~> 3.0"
11
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tpm-key_attestation (0.4.0)
4
+ tpm-key_attestation (0.5.0)
5
5
  bindata (~> 2.4)
6
6
 
7
7
  GEM
@@ -13,6 +13,7 @@ GEM
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.0)
15
15
  bindata (2.4.4)
16
+ byebug (11.1.0)
16
17
  diff-lcs (1.3)
17
18
  jaro_winkler (1.5.4)
18
19
  parallel (1.19.1)
@@ -49,6 +50,7 @@ PLATFORMS
49
50
 
50
51
  DEPENDENCIES
51
52
  appraisal (~> 2.2.0)
53
+ byebug (~> 11.0)
52
54
  rake (~> 12.0)
53
55
  rspec (~> 3.0)
54
56
  rubocop
@@ -20,13 +20,13 @@ module TPM
20
20
  end
21
21
 
22
22
  def key
23
- if valid?
23
+ if certify_validator.valid?(signing_key)
24
24
  public_area.key
25
25
  end
26
26
  end
27
27
 
28
28
  def valid?
29
- certify_validator.valid?(signing_key)
29
+ !!key
30
30
  end
31
31
 
32
32
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TPM
4
4
  class KeyAttestation
5
- VERSION = "0.4.0"
5
+ VERSION = "0.5.0"
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "TPM Key Attestation verifier"
12
12
  spec.homepage = "https://github.com/cedarcode/tpm-key_attestation"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
14
14
 
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = spec.homepage
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tpm-key_attestation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-20 00:00:00.000000000 Z
11
+ date: 2020-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 2.3.0
79
+ version: 2.4.0
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="