lazy_rsa 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lazy_rsa.rb +1 -1
- 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: 7c8aba055f8175f3bd6149e29ceb1dbfe9a19664ddb350e16a80238b84f5ba48
|
4
|
+
data.tar.gz: d673fd5393b4c83c40551d7de2b2a52efb7ffef5ca6b03d3ccd014622f191a03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa10c9d3755c5cdd660a31ec532be9e5018ab34b6c5025eb11c5a55ee4548f8f273f7af0a224e4905e46c271bed18edbaee499162df64d113ac77907a3f172cc
|
7
|
+
data.tar.gz: c524ab6edbc2ab893a5b8e94d8e6011b6f4e47c8da5f25a01769dc2db50bd713b7417bafac09ee8b96f1de8a66414b05c760dfa6df8e754640c117f6f3325ad8
|
data/lib/lazy_rsa.rb
CHANGED
@@ -21,7 +21,7 @@ module LazyRsa
|
|
21
21
|
phi = (p - 1) * (q - 1)
|
22
22
|
end
|
23
23
|
n = p * q
|
24
|
-
e = p.mod_exp(Constants::SECURE_EXPONENT, Constants::SECURE_MODULUS)
|
24
|
+
e = p.mod_exp(LazyRsa::Constants::SECURE_EXPONENT, LazyRsa::Constants::SECURE_MODULUS)
|
25
25
|
d = e.mod_inverse(phi)
|
26
26
|
|
27
27
|
build_key(e:, d:, n:)
|