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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openssl/ssh_pkey.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33f17b1fdc475af2152a362ab8227cedaae47c064fb89f664ae3a55992c825b1
4
- data.tar.gz: dfce75b619ac474dbdccd3b67d2ec52c45562b15cbd5bc3b12c91f265cd41fe1
3
+ metadata.gz: cdd8e73590f05d365f26e89266bf5d407577b107c97b28bd5f85c072cfa87ce0
4
+ data.tar.gz: 9647f4f6f32b983dbf3a1afad9f0ab55c3dd63b53533ee10f9e65e08f77d7336
5
5
  SHA512:
6
- metadata.gz: 974ab05c0c237e47f2e4b5f06d22413425ac36eedbe5994d21bd4895240de20bc0698fadd56a7fb13edcde5e74321af0ba41c9f8c77e948136e60de5454f8d8c
7
- data.tar.gz: 6dde9c594bbcca5ae3c53523deaa52aabd1c629d2a3df8749e1d9a1427153f89317e7f6c3f55f803602ec28472bb3ab0f0a182012b6c6d4934e01fa1dbea4356
6
+ metadata.gz: e187e3ed9f3405625530259d820d562728e5470ae9b02ef059a0fdbcb474eb9ff5a362efbc9a736c6d5386f74961fc7787cb583720600341298199d01edb7b61
7
+ data.tar.gz: ca604e9d75b36ebd670ceb63a2bd15cc858c55d4fa2184b915cf20ecd88dddc2fc4e4e172a68f4231e62daf7204948a58dd441cf5a432721e238d37d91168748
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl-additions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer