| 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. | 
| _parseASN1PrivateKey(privateKeyP)(Static method) | |
| _parsePKCS8(bytes)(Static method) | |
| _parseSSLeay(bytes)(Static method) | |
| _parseXML(element)(Static method) | |
| _rawPrivateKeyOp(self,
          m) | |
| _rawPrivateKeyOpHelper(self,
          m) | |
| _rawPublicKeyOp(self,
          c) | |
| Inherited from RSAKey | |
| int | Return the length of this key in bits. | 
| array.arrayof unsigned bytes or None. | Decrypt the passed-in bytes. | 
| array.arrayof unsigned bytes. | Encrypt the passed-in bytes. | 
| str | Return the cryptoID sigAlgo value corresponding to this key. | 
| array.arrayof unsigned bytes. | Hash and sign the passed-in bytes. | 
| bool | Hash and verify the passed-in bytes with the signature. | 
| array.arrayof 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 Mon Feb 21 21:56:53 2005 | http://epydoc.sf.net |