cose-key 0.1.0 → 0.2.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
- SHA1:
3
- metadata.gz: 208b5b41e44c40b240ed65dee956ee88d0717f05
4
- data.tar.gz: 338147a53f90187024e6dff8430aaafe58961f27
2
+ SHA256:
3
+ metadata.gz: 370bd05f8c80d2cacbc2fbae89fae839cb1f8096237a6d5e528900e188aaee86
4
+ data.tar.gz: 5aedf59dc00d832569871159456972932b6c2ff2822f9bda791206c9765e0907
5
5
  SHA512:
6
- metadata.gz: 0b868731d73734f081d368473525ae25546c766617eb398b63efa37fe5c48399bfa869a22bc00a34255190b69439f19ccd0bf753cd6ee188691fb174205000b2
7
- data.tar.gz: b844aac95c6e92ac9bffd1a67fa778ecf9a5a9b4d6522e55ea5ee5601375fa9625eb857471c7920c7fa79f69a746b32f65d44be4ddcd0092af0f13f2554e27ec
6
+ metadata.gz: 7e2a11691e743478199591f8f363c5c64cb9eef7e2b1c6164a81678111a20b3a91d43dbe8f879e26fc03e9ca917b2c2772681e0e62c0f786433fd5e4d4572d9b
7
+ data.tar.gz: b7d56af7a6caf5c4f13392410af8e353465b1d352b115de783916c2ded3faa83aef6b4662b15fa74a7c834fa8e323e6c30207d73c0fdf0560736c054d82ac0be
data/README.md CHANGED
@@ -46,12 +46,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
46
46
 
47
47
  ## Contributing
48
48
 
49
- Bug reports and pull requests are welcome on GitHub at https://github.com/nov/cose-key. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nov/cose-key.
50
50
 
51
51
  ## License
52
52
 
53
53
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
54
-
55
- ## Code of Conduct
56
-
57
- Everyone interacting in the COSE::Key project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/cose-key/blob/master/CODE_OF_CONDUCT.md).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -72,6 +72,11 @@ module COSE
72
72
  )
73
73
  key
74
74
  end
75
+
76
+ def verify(signature, signature_base_string)
77
+ public_key = to_key
78
+ public_key.verify digest, signature, signature_base_string
79
+ end
75
80
  end
76
81
  end
77
82
  end
@@ -69,6 +69,10 @@ module COSE
69
69
  end
70
70
  key
71
71
  end
72
+
73
+ def verify(signature, signature_base_string)
74
+ to_key.verify_pss digest, signature, signature_base_string
75
+ end
72
76
  end
73
77
  end
74
78
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cose-key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-09 00:00:00.000000000 Z
11
+ date: 2018-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cbor
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.6.11
126
+ rubygems_version: 2.7.3
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: COSE Key in Ruby