Merge pull request #3419 from cluelessperson/fix_rsakey

[easy] Typo breaks lib.rsakey.RSAKey.generate ?
This commit is contained in:
ThomasV 2017-11-30 10:12:23 +01:00 committed by GitHub
commit 683495b325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -526,7 +526,7 @@ class RSAKey(object):
return False
def generate(bits):
key = Python_RSAKey()
key = RSAKey()
p = getRandomPrime(bits//2, False)
q = getRandomPrime(bits//2, False)
t = lcm(p-1, q-1)
@ -540,4 +540,3 @@ class RSAKey(object):
key.qInv = invMod(q, p)
return key
generate = staticmethod(generate)