Skip to content

Commit 728a34b

Browse files
committed
Bump gem version to v1.0.0
1 parent bc11db7 commit 728a34b

File tree

5 files changed

+51
-12
lines changed

5 files changed

+51
-12
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## [v1.0.0] - 2020-07-08
4+
5+
### Added
6+
7+
- ECDSA with **secp256k1** curve support added:
8+
```rb
9+
OpenSSL::SignatureAlgorithm::ECDSA.new(curve: "secp256k1")
10+
```
11+
- Algorithm **arguments** are now **optional**. The following works:
12+
13+
```rb
14+
OpenSSL::SignatureAlgorithm::ECDSA.new
15+
# defaults to ECDSA with SHA-256 and NIST P256 curve
16+
# Same as OpenSSL::SignatureAlgorithm::ECDSA.new(hash_function: "SHA256", curve: "prime256v1")
17+
18+
OpenSSL::SignatureAlgorithm::RSAPSS.new
19+
# defaults to SHA-256
20+
# Same as OpenSSL::SignatureAlgorithm::RSAPSS.new(hash_function: "SHA256")
21+
22+
OpenSSL::SignatureAlgorithm::RSAPKCS1.new
23+
# defaults to SHA-256
24+
# Same as OpenSSL::SignatureAlgorithm::RSAPSS.new(hash_function: "SHA256")
25+
```
26+
27+
### Changed
28+
29+
- Algorithm **instantiation** changed. The positional argument `digest_length` is replaced with keyword arguments, `hash_function:` for RSA algorithms and `hash_function:` and `curve:` for ECDSA. None are required arguments, you get sane defaults if you don't provide any arguments. Code migration examples:
30+
```rb
31+
# Change this
32+
# OpenSSL::SignatureAlgorithm::ECDSA.new("256")
33+
# to
34+
OpenSSL::SignatureAlgorithm::ECDSA.new(hash_function: "SHA256")
35+
```
36+
```rb
37+
# Change this
38+
# OpenSSL::SignatureAlgorithm::RSAPSS.new("384")
39+
# to
40+
OpenSSL::SignatureAlgorithm::RSAPSS.new(hash_function: "SHA384")
41+
```
42+
343
## [v0.4.0] - 2020-01-31
444

545
### Added
@@ -32,6 +72,7 @@
3272
- `OpenSSL::SignatureAlgorithm::RSAPSS`
3373
- `OpenSSL::SignatureAlgorithm::RSAPKCS1`
3474

75+
[v1.0.0]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v0.4.0...v1.0.0/
3576
[v0.4.0]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v0.3.0...v0.4.0/
3677
[v0.3.0]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v0.2.0...v0.3.0/
3778
[v0.2.0]: https://github.com/cedarcode/openssl-signature_algorithm/compare/v0.1.1...v0.2.0/

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
openssl-signature_algorithm (0.4.0)
4+
openssl-signature_algorithm (1.0.0)
55

66
GEM
77
remote: https://rubygems.org/

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# OpenSSL::SignatureAlgorithm
22

3+
> ECDSA, RSA-PSS and RSA-PKCS#1 signature algorithms for ruby
4+
5+
Sign and verify using signature algorithm wrappers, instead of key objects.
6+
37
Provides `OpenSSL::SignatureAlgorithm::ECDSA`, `OpenSSL::SignatureAlgorithm::RSAPSS`
48
and `OpenSSL::SignatureAlgorithm::RSAPKCS1` ruby object wrappers on top of `OpenSSL::PKey::EC`
5-
and `OpenSSL::PKey::RSA`, so that you can reason in terms of signature algorithms when
6-
signing and/or verifying signatures, instead of keys.
9+
and `OpenSSL::PKey::RSA`, so that you can reason in terms of the algorithms and do less when
10+
signing or verifying signatures.
711

812
[![Gem](https://img.shields.io/gem/v/openssl-signature_algorithm.svg?style=flat-square&color=informational)](https://rubygems.org/gems/openssl-signature_algorithm)
913
[![Travis](https://img.shields.io/travis/cedarcode/openssl-signature_algorithm/master.svg?style=flat-square)](https://travis-ci.org/cedarcode/openssl-signature_algorithm)

lib/openssl/signature_algorithm/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module OpenSSL
44
module SignatureAlgorithm
5-
VERSION = "0.4.0"
5+
VERSION = "1.0.0"
66
end
77
end

openssl-signature_algorithm.gemspec

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,8 @@ Gem::Specification.new do |spec|
99
spec.email = ["gonzalo@cedarcode.com"]
1010
spec.license = "Apache-2.0"
1111

12-
spec.summary = "OpenSSL::SignatureAlgorithm helpers for signing and verifying signatures with openssl ruby gem"
13-
14-
spec.description = <<-DESC
15-
Provides OpenSSL::SignatureAlgorithm::ECDSA, OpenSSL::SignatureAlgorithm::RSAPSS
16-
and OpenSSL::SignatureAlgorithm::RSAPKCS1 ruby object wrappers on top of OpenSSL::PKey::EC
17-
and OpenSSL::PKey::RSA, so that you can reason in terms of signature algorithms when
18-
signing and/or verifying signatures, instead of keys.
19-
DESC
12+
spec.summary = "ECDSA, RSA-PSS and RSA-PKCS#1 algorithms for ruby"
13+
spec.description = spec.summary
2014

2115
spec.homepage = "https://github.com/cedarcode/openssl-signature_algorithm"
2216
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")

0 commit comments

Comments
 (0)