openssl-additions 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openssl/ssh_pkey.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdd8e73590f05d365f26e89266bf5d407577b107c97b28bd5f85c072cfa87ce0
|
4
|
+
data.tar.gz: 9647f4f6f32b983dbf3a1afad9f0ab55c3dd63b53533ee10f9e65e08f77d7336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e187e3ed9f3405625530259d820d562728e5470ae9b02ef059a0fdbcb474eb9ff5a362efbc9a736c6d5386f74961fc7787cb583720600341298199d01edb7b61
|
7
|
+
data.tar.gz: ca604e9d75b36ebd670ceb63a2bd15cc858c55d4fa2184b915cf20ecd88dddc2fc4e4e172a68f4231e62daf7204948a58dd441cf5a432721e238d37d91168748
|
data/lib/openssl/ssh_pkey.rb
CHANGED
@@ -63,6 +63,8 @@ module OpenSSL::PKey
|
|
63
63
|
k.set_key(ssh_key_mpi_decode(parts[0]), ssh_key_mpi_decode(parts[1]), ssh_key_mpi_decode(parts[2]))
|
64
64
|
# p, q
|
65
65
|
k.set_factors(ssh_key_mpi_decode(parts[4]), ssh_key_mpi_decode(parts[5]))
|
66
|
+
# I am mystified as to why we have to do this manually
|
67
|
+
k.set_crt_params(k.d.to_i % (k.p.to_i - 1), k.d.to_i % (k.q.to_i - 1), ssh_key_mpi_decode(parts[3]))
|
66
68
|
end
|
67
69
|
when "ssh-dss"
|
68
70
|
parts = ssh_key_lv_decode(rest, 5)
|