lazy_rsa 0.3.6 → 0.3.7

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/lazy_rsa.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aec4c9558e64d74ae8530e14ba5110cce7278010b4f80db751bfeb35e67bcdb4
4
- data.tar.gz: ac1eae2fdaa2336001689e072746137aaad168d99c1253e7c885770ba5acfca6
3
+ metadata.gz: d82c509b57e993bf749370f60576fd0ca67065bd42872470e50e581aa5ed4054
4
+ data.tar.gz: d66fd6952a570c28a5b35a203036e839e8afaee03d659d18df06785c6d55252c
5
5
  SHA512:
6
- metadata.gz: ea9d42065fe7a1495369808a1d66695affa5d27009d4d9385e789f985479fc848ee289ff917a9a026364a62b2441c44becdde8174e5b1f8a2681e4e307d99c99
7
- data.tar.gz: 6800a222e1b068fd55e75924a3fd9a2480ce9a90302eabb605a8358e9dda64a6e179d3a59acac6aaddf88b3723c488d2b39fcbf6ef2fa8e2db799cef36690c95
6
+ metadata.gz: 5c61af315c46dae91905a437c16f2c70c265a018ff5fe93c2d78899f5924c020477ab2da3be347a96125821de8c03edc93f3f0ea150bda7fa471c954bdb048bd
7
+ data.tar.gz: c079c3ce8a79ae3404b9cd00b0fed0bb65d29832d5b6bdf3fa59639989376c0b0470a6d407f05116ea1657f7a3ab670f23bbe0fde383540e34e62107d459be07
data/lib/lazy_rsa.rb CHANGED
@@ -16,8 +16,9 @@ module LazyRsa
16
16
  end
17
17
 
18
18
  def generate_key
19
+ p = 0
19
20
  q = OpenSSL::BN.generate_prime(512)
20
- phi = OpenSSL::BN.new(0)
21
+ phi = 0
21
22
  loop do
22
23
  p = OpenSSL::BN.generate_prime(512)
23
24
  phi = (p - 1) * (q - 1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_rsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Quaranto