linzer 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/linzer/signature.rb +2 -1
- data/lib/linzer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d894c6969ed3ed090305c6232eba9b9c277893ade58afc49df8f34adebfe8f2
|
4
|
+
data.tar.gz: a33efff10c8805011949f49e26a8777a7b1c4bf592ba4b5974de3c753cb4ed02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199983c83faa155354b4f9d0ee433fcf67ec5c2aac02deaf8be2be6ab3db612e68b062f43885f643643bbcbb5a150c2dc81021bc5de5ffbc1f99d32b05254bf9
|
7
|
+
data.tar.gz: a8e0299826535468912457200eb479a115b395b6f20966f7584e3f257a05be01fb27f49f5dfd822baed973efd5b20ae824000faf2b427a19266ac28eb936c97c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.3.2] - 2024-03-16
|
4
|
+
|
5
|
+
- Force signature component name strings to be encoded as ASCII.
|
6
|
+
Otherwise in some scenarios, this could to signature verification errors
|
7
|
+
for valid signatures.
|
8
|
+
|
3
9
|
## [0.3.1] - 2024-03-02
|
4
10
|
|
5
11
|
- Fix incorrect signing and verifying for ECDSA P-256 and P-384 curves.
|
data/lib/linzer/signature.rb
CHANGED
@@ -42,7 +42,8 @@ module Linzer
|
|
42
42
|
|
43
43
|
fail_due_invalid_components unless input[label].value.respond_to?(:each)
|
44
44
|
|
45
|
-
|
45
|
+
ascii = Encoding::US_ASCII
|
46
|
+
components = input[label].value.map { |c| c.value.encode(ascii) }
|
46
47
|
parameters = input[label].parameters
|
47
48
|
|
48
49
|
new(components, raw_signature, label, parameters)
|
data/lib/linzer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Landaeta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ed25519
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.4.
|
97
|
+
rubygems_version: 3.4.3
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: An implementation of HTTP Messages Signatures (RFC9421)
|