Home | Trees | Index | Help |
---|
Package tlslite :: Package utils :: Module Python_RSAKey :: Class Python_RSAKey |
|
RSAKey
--+
|
Python_RSAKey
Method Summary | |
---|---|
Create a new RSA key. | |
bool |
Return True if the write() method accepts a password for use in encrypting the private key. |
generate(bits)
(Static method) | |
str |
Return the cryptoID <keyHash> value corresponding to this key. |
bool |
Return whether or not this key has a private component. |
Parse a string containing a <privateKey> or <publicKey>, or PEM-encoded key. (Static method) | |
parseXML(s)
(Static method) | |
write(self,
indent)
| |
str |
Return a string containing the key. |
Inherited from RSAKey | |
int |
Return the length of this key in bits. |
array.array of unsigned bytes or None.
|
Decrypt the passed-in bytes. |
array.array of unsigned bytes.
|
Encrypt the passed-in bytes. |
str |
Return the cryptoID sigAlgo value corresponding to this key. |
array.array of unsigned bytes.
|
Hash and sign the passed-in bytes. |
bool |
Hash and verify the passed-in bytes with the signature. |
array.array of unsigned bytes.
|
Sign the passed-in bytes. |
bool |
Verify the passed-in bytes with the signature. |
Instance Method Details |
---|
__init__(self,
n=0,
e=0,
d=0,
p=0,
q=0,
dP=0,
dQ=0,
qInv=0)
|
acceptsPassword(self)Return True if the write() method accepts a password for use in encrypting the private key.
|
hash(self)Return the cryptoID <keyHash> value corresponding to this key.
|
hasPrivateKey(self)Return whether or not this key has a private component.
|
writeXMLPublicKey(self, indent='')Return a string containing the key.
|
Static Method Details |
---|
parsePEM(s, passwordCallback=None)Parse a string containing a <privateKey> or <publicKey>, or PEM-encoded key. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sun Mar 21 00:04:59 2004 | http://epydoc.sf.net |