aws-sigv4 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sigv4/asymmetric_credentials.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05aa41853460311d09022d38c02afd09077ca66517160c73022f650168a6efbc
|
4
|
+
data.tar.gz: b9e7a93a0007cb185b93fc4939d254e1ac263a442ff470ec1ba9bd8d2975e0aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12f9e162a36d33d405ab66ccb2c8bdb1d3c0f7d66ec4c4460a59a95b78a178dbc6e270a524901a3e689b496dbed4b1422e6fa5f27786159e46cd2e13e26a2c0
|
7
|
+
data.tar.gz: f18c1d784aeec37245654255f4abb14ba0183f8a1bb33836c2167df66c3005bb0d7d7c190c8d8cff7dedc0a2d8c8f4debf631fc6716b6d8a2db24eadf9926a47
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.10.
|
1
|
+
1.10.1
|
@@ -60,6 +60,16 @@ module Aws
|
|
60
60
|
x
|
61
61
|
end
|
62
62
|
|
63
|
+
# @return [Array] value of the BigNumber as a big-endian unsigned byte array.
|
64
|
+
def self.bn_to_be_bytes(bn)
|
65
|
+
bytes = []
|
66
|
+
while bn > 0
|
67
|
+
bytes << (bn & 0xff)
|
68
|
+
bn = bn >> 8
|
69
|
+
end
|
70
|
+
bytes.reverse
|
71
|
+
end
|
72
|
+
|
63
73
|
# Prior to openssl3 we could directly set public and private key on EC
|
64
74
|
# However, openssl3 deprecated those methods and we must now construct
|
65
75
|
# a der with the keys and load the EC from it.
|
@@ -67,7 +77,7 @@ module Aws
|
|
67
77
|
# format reversed from: OpenSSL::ASN1.decode_all(OpenSSL::PKey::EC.new.to_der)
|
68
78
|
asn1 = OpenSSL::ASN1::Sequence([
|
69
79
|
OpenSSL::ASN1::Integer(OpenSSL::BN.new(1)),
|
70
|
-
OpenSSL::ASN1::OctetString(
|
80
|
+
OpenSSL::ASN1::OctetString(bn_to_be_bytes(d).pack('C*')),
|
71
81
|
OpenSSL::ASN1::ASN1Data.new([OpenSSL::ASN1::ObjectId("prime256v1")], 0, :CONTEXT_SPECIFIC),
|
72
82
|
OpenSSL::ASN1::ASN1Data.new(
|
73
83
|
[OpenSSL::ASN1::BitString(public_key.to_octet_string(:uncompressed))],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sigv4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-eventstream
|