Home | Trees | Indices | Help |
---|
|
1 # Author: Trevor Perrin 2 # See the LICENSE file for legal information regarding use of this file. 3 4 """PyCrypto RSA implementation.""" 5 6 from .cryptomath import * 7 8 from .rsakey import * 9 from .python_rsakey import Python_RSAKey 10 from .compat import compatLong 11 12 if pycryptoLoaded: 13 14 from Crypto.PublicKey import RSA 1545 generate = staticmethod(generate) 4618 if not d: 19 self.rsa = RSA.construct((compatLong(n), compatLong(e))) 20 else: 21 self.rsa = RSA.construct((compatLong(n), compatLong(e), 22 compatLong(d), compatLong(p), 23 compatLong(q)))24 2729 return self.rsa.has_private()30 34 38 43 key.rsa = RSA.generate(bits, f) 44 return key
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Dec 8 16:30:21 2015 | http://epydoc.sourceforge.net |