openssl-signature_algorithm 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +21 -5
- data/.rubocop.yml +4 -0
- data/Appraisals +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +23 -18
- data/gemfiles/openssl_2_1.gemfile +2 -2
- data/gemfiles/openssl_2_2.gemfile +2 -2
- data/gemfiles/{openssl_2_0.gemfile → openssl_3_0.gemfile} +3 -3
- data/gemfiles/openssl_3_1.gemfile +13 -0
- data/lib/openssl/signature_algorithm/ecdsa.rb +11 -7
- data/lib/openssl/signature_algorithm/version.rb +1 -1
- data/openssl-signature_algorithm.gemspec +1 -1
- metadata +4 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05b32cb5c229b287708d0931b8ac52b8c90c98f53d31e146df38406870300e95
|
4
|
+
data.tar.gz: 0b35e770ff3342d8d7d7008f8a76a4cb40e63dfe756676276e84e72da0af6677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5bfe46225bf0fa061ef6046d94e7297bfd124be0b95cd4fc3cc125f8fcd58a288a8945a64f9af8f50ff3fdd22c148e3495bd643c9de5b535ca8ecb14c266649
|
7
|
+
data.tar.gz: 34a46fea3bde198cdbbc3b9e024dec9d635aa8c15484a819d8350bdd3b3a996dff75b6f64b6f9971f890c2796873594c555e0970f83a0e72adce9b22bf54c992
|
data/.github/workflows/build.yml
CHANGED
@@ -16,23 +16,39 @@ jobs:
|
|
16
16
|
fail-fast: false
|
17
17
|
matrix:
|
18
18
|
ruby-version:
|
19
|
-
- 3.
|
20
|
-
-
|
19
|
+
- 3.2.0
|
20
|
+
- 3.1.3
|
21
|
+
- 3.0.5
|
22
|
+
- 2.7.7
|
21
23
|
- 2.6.6
|
22
24
|
- 2.5.8
|
23
25
|
- 2.4.10
|
24
26
|
gemfile:
|
27
|
+
- openssl_3_1
|
25
28
|
- openssl_3_0
|
26
29
|
- openssl_2_2
|
27
30
|
- openssl_2_1
|
28
|
-
|
31
|
+
exclude:
|
32
|
+
- ruby-version: '2.4.10'
|
33
|
+
gemfile: openssl_3_0
|
34
|
+
- ruby-version: '2.5.8'
|
35
|
+
gemfile: openssl_3_0
|
36
|
+
- ruby-version: '2.4.10'
|
37
|
+
gemfile: openssl_3_1
|
38
|
+
- ruby-version: '2.5.8'
|
39
|
+
gemfile: openssl_3_1
|
29
40
|
env:
|
30
41
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
31
42
|
steps:
|
32
43
|
- uses: actions/checkout@v2
|
33
44
|
- run: rm Gemfile.lock
|
34
|
-
-
|
45
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
46
|
+
uses: ruby/setup-ruby@v1
|
35
47
|
with:
|
36
48
|
ruby-version: ${{ matrix.ruby-version }}
|
37
49
|
bundler-cache: true
|
38
|
-
-
|
50
|
+
- name: Run rubocop
|
51
|
+
run: bundle exec rubocop
|
52
|
+
if: ${{ matrix.ruby == '3.2.0' }}
|
53
|
+
- name: Run tests
|
54
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
AllCops:
|
2
2
|
TargetRubyVersion: 2.4
|
3
3
|
DisabledByDefault: true
|
4
|
+
NewCops: disable
|
4
5
|
Exclude:
|
5
6
|
- "gemfiles/**/*"
|
6
7
|
- "vendor/bundle/**/*"
|
@@ -20,6 +21,9 @@ Layout/LineLength:
|
|
20
21
|
Lint:
|
21
22
|
Enabled: true
|
22
23
|
|
24
|
+
Lint/MissingSuper:
|
25
|
+
Enabled: false
|
26
|
+
|
23
27
|
Naming:
|
24
28
|
Enabled: true
|
25
29
|
|
data/Appraisals
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
appraise "openssl_3_1" do
|
4
|
+
gem "openssl", "~> 3.1.0"
|
5
|
+
end
|
6
|
+
|
3
7
|
appraise "openssl_3_0" do
|
4
8
|
gem "openssl", "~> 3.0.0"
|
5
9
|
end
|
@@ -11,7 +15,3 @@ end
|
|
11
15
|
appraise "openssl_2_1" do
|
12
16
|
gem "openssl", "~> 2.1.0"
|
13
17
|
end
|
14
|
-
|
15
|
-
appraise "openssl_2_0" do
|
16
|
-
gem "openssl", "~> 2.0.0"
|
17
|
-
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.3.0] - 2023-02-15
|
4
|
+
|
5
|
+
- Loose OpenSSL dependency to support 3.1 users. Thanks @bdewater <3
|
6
|
+
|
3
7
|
## [v1.2.1] - 2022-06-05
|
4
8
|
|
5
9
|
- Support OpenSSL ~>3.0.0. Credits to @ClearlyClaire <3
|
@@ -88,6 +92,7 @@
|
|
88
92
|
- `OpenSSL::SignatureAlgorithm::RSAPSS`
|
89
93
|
- `OpenSSL::SignatureAlgorithm::RSAPKCS1`
|
90
94
|
|
95
|
+
[v1.3.0]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v1.2.1...v1.3.0/
|
91
96
|
[v1.2.1]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v1.1.1...v1.2.1/
|
92
97
|
[v1.1.1]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v1.1.0...v1.1.1/
|
93
98
|
[v1.1.0]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v1.0.0...v1.1.0/
|
@@ -100,3 +105,4 @@
|
|
100
105
|
|
101
106
|
[@santiagorodriguez96]: https://github.com/santiagorodriguez96
|
102
107
|
[@ClearlyClaire]: https://github.com/clearlyclaire
|
108
|
+
[@bdewater]: https://github.com/bdewater
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
openssl-signature_algorithm (1.
|
5
|
-
openssl (> 2.0
|
4
|
+
openssl-signature_algorithm (1.2.1)
|
5
|
+
openssl (> 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -11,18 +11,19 @@ GEM
|
|
11
11
|
bundler
|
12
12
|
rake
|
13
13
|
thor (>= 0.14.0)
|
14
|
-
ast (2.4.
|
14
|
+
ast (2.4.2)
|
15
15
|
byebug (11.1.1)
|
16
16
|
diff-lcs (1.3)
|
17
17
|
ed25519 (1.2.4)
|
18
|
-
|
18
|
+
json (2.6.3)
|
19
19
|
openssl (3.0.0)
|
20
|
-
parallel (1.
|
21
|
-
parser (2.
|
22
|
-
ast (~> 2.4.
|
23
|
-
rainbow (3.
|
20
|
+
parallel (1.22.1)
|
21
|
+
parser (3.2.1.0)
|
22
|
+
ast (~> 2.4.1)
|
23
|
+
rainbow (3.1.1)
|
24
24
|
rake (13.0.1)
|
25
|
-
|
25
|
+
regexp_parser (2.7.0)
|
26
|
+
rexml (3.2.5)
|
26
27
|
rspec (3.9.0)
|
27
28
|
rspec-core (~> 3.9.0)
|
28
29
|
rspec-expectations (~> 3.9.0)
|
@@ -36,17 +37,21 @@ GEM
|
|
36
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
38
|
rspec-support (~> 3.9.0)
|
38
39
|
rspec-support (3.9.2)
|
39
|
-
rubocop (
|
40
|
-
|
40
|
+
rubocop (1.45.1)
|
41
|
+
json (~> 2.3)
|
41
42
|
parallel (~> 1.10)
|
42
|
-
parser (>= 2.
|
43
|
+
parser (>= 3.2.0.0)
|
43
44
|
rainbow (>= 2.2.2, < 4.0)
|
44
|
-
|
45
|
+
regexp_parser (>= 1.8, < 3.0)
|
46
|
+
rexml (>= 3.2.5, < 4.0)
|
47
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
45
48
|
ruby-progressbar (~> 1.7)
|
46
|
-
unicode-display_width (>=
|
47
|
-
|
49
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
50
|
+
rubocop-ast (1.24.1)
|
51
|
+
parser (>= 3.1.1.0)
|
52
|
+
ruby-progressbar (1.11.0)
|
48
53
|
thor (1.0.1)
|
49
|
-
unicode-display_width (
|
54
|
+
unicode-display_width (2.4.2)
|
50
55
|
|
51
56
|
PLATFORMS
|
52
57
|
ruby
|
@@ -58,7 +63,7 @@ DEPENDENCIES
|
|
58
63
|
openssl-signature_algorithm!
|
59
64
|
rake (~> 13.0)
|
60
65
|
rspec (~> 3.0)
|
61
|
-
rubocop (~> 0
|
66
|
+
rubocop (~> 1.0)
|
62
67
|
|
63
68
|
BUNDLED WITH
|
64
|
-
2.
|
69
|
+
2.3.26
|
@@ -4,10 +4,10 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "appraisal", "~> 2.2"
|
6
6
|
gem "byebug", "~> 11.0"
|
7
|
+
gem "ed25519", "~> 1.2"
|
7
8
|
gem "rake", "~> 13.0"
|
8
9
|
gem "rspec", "~> 3.0"
|
9
|
-
gem "rubocop", "~> 0
|
10
|
-
gem "ed25519", "~> 1.2"
|
10
|
+
gem "rubocop", "~> 1.0"
|
11
11
|
gem "openssl", "~> 2.1.0"
|
12
12
|
|
13
13
|
gemspec path: "../"
|
@@ -4,10 +4,10 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "appraisal", "~> 2.2"
|
6
6
|
gem "byebug", "~> 11.0"
|
7
|
+
gem "ed25519", "~> 1.2"
|
7
8
|
gem "rake", "~> 13.0"
|
8
9
|
gem "rspec", "~> 3.0"
|
9
|
-
gem "rubocop", "~> 0
|
10
|
-
gem "ed25519", "~> 1.2"
|
10
|
+
gem "rubocop", "~> 1.0"
|
11
11
|
gem "openssl", "~> 2.2.0"
|
12
12
|
|
13
13
|
gemspec path: "../"
|
@@ -4,10 +4,10 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "appraisal", "~> 2.2"
|
6
6
|
gem "byebug", "~> 11.0"
|
7
|
+
gem "ed25519", "~> 1.2"
|
7
8
|
gem "rake", "~> 13.0"
|
8
9
|
gem "rspec", "~> 3.0"
|
9
|
-
gem "rubocop", "~> 0
|
10
|
-
gem "
|
11
|
-
gem "openssl", "~> 2.0.0"
|
10
|
+
gem "rubocop", "~> 1.0"
|
11
|
+
gem "openssl", "~> 3.0.0"
|
12
12
|
|
13
13
|
gemspec path: "../"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal", "~> 2.2"
|
6
|
+
gem "byebug", "~> 11.0"
|
7
|
+
gem "ed25519", "~> 1.2"
|
8
|
+
gem "rake", "~> 13.0"
|
9
|
+
gem "rspec", "~> 3.0"
|
10
|
+
gem "rubocop", "~> 1.0"
|
11
|
+
gem "openssl", "~> 3.1.0"
|
12
|
+
|
13
|
+
gemspec path: "../"
|
@@ -36,13 +36,17 @@ module OpenSSL
|
|
36
36
|
@ec_key ||=
|
37
37
|
begin
|
38
38
|
# RFC5480 SubjectPublicKeyInfo
|
39
|
-
asn1 = OpenSSL::ASN1::Sequence(
|
40
|
-
|
41
|
-
OpenSSL::ASN1::
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
asn1 = OpenSSL::ASN1::Sequence(
|
40
|
+
[
|
41
|
+
OpenSSL::ASN1::Sequence(
|
42
|
+
[
|
43
|
+
OpenSSL::ASN1::ObjectId("id-ecPublicKey"),
|
44
|
+
OpenSSL::ASN1::ObjectId(group.curve_name),
|
45
|
+
]
|
46
|
+
),
|
47
|
+
OpenSSL::ASN1::BitString(to_octet_string(:uncompressed))
|
48
|
+
]
|
49
|
+
)
|
46
50
|
|
47
51
|
OpenSSL::PKey::EC.new(asn1.to_der)
|
48
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openssl-signature_algorithm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: openssl
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.0'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '2.0'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3.1'
|
33
27
|
description: ECDSA, EdDSA, RSA-PSS and RSA-PKCS#1 algorithms for ruby
|
34
28
|
email:
|
35
29
|
- gonzalo@cedarcode.com
|
@@ -51,9 +45,10 @@ files:
|
|
51
45
|
- bin/console
|
52
46
|
- bin/setup
|
53
47
|
- gemfiles/.bundle/config
|
54
|
-
- gemfiles/openssl_2_0.gemfile
|
55
48
|
- gemfiles/openssl_2_1.gemfile
|
56
49
|
- gemfiles/openssl_2_2.gemfile
|
50
|
+
- gemfiles/openssl_3_0.gemfile
|
51
|
+
- gemfiles/openssl_3_1.gemfile
|
57
52
|
- lib/openssl/signature_algorithm.rb
|
58
53
|
- lib/openssl/signature_algorithm/base.rb
|
59
54
|
- lib/openssl/signature_algorithm/ecdsa.rb
|