Home | Trees | Indices | Help |
---|
|
This is an abstract base class for RSA keys.
Particular implementations of RSA keys, such as openssl_rsakey.OpenSSL_RSAKey, python_rsakey.Python_RSAKey, and pycrypto_rsakey.PyCrypto_RSAKey, inherit from this.
To create or parse an RSA key, don't use one of these classes directly. Instead, use the factory functions in tlslite.utils.keyfactory.
|
|||
|
|||
int |
|
||
|
|||
|
|||
|
|||
bool |
|
||
bytearray of unsigned bytes or None.
|
|
||
bytearray of unsigned bytes.
|
|
||
bool |
|
||
bytearray of unsigned bytes.
|
|
||
bool |
|
||
bytearray of unsigned bytes.
|
|
||
bool |
|
||
str |
|
||
Inherited from |
|
|||
|
|||
tlslite.utils.RSAKey.RSAKey |
|
|
|||
Inherited from |
|
Create a new RSA key. If n and e are passed in, the new key will be initialized.
|
Decrypt the passed-in bytes. This requires the key to have a private component. It performs PKCS1 decryption of the passed-in data.
|
Encrypt the passed-in bytes. This performs PKCS1 encryption of the passed-in data.
|
Hash and sign the passed-in bytes. This requires the key to have a private component. It performs a PKCS1-SHA1 signature on the passed-in data.
|
Hash and verify the passed-in bytes with the signature. This verifies a PKCS1-SHA1 signature on the passed-in data.
|
Sign the passed-in bytes. This requires the key to have a private component. It performs a PKCS1 signature on the passed-in data.
|
Verify the passed-in bytes with the signature. This verifies a PKCS1 signature on the passed-in data.
|
Return a string containing the key.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Jul 24 14:46:54 2015 | http://epydoc.sourceforge.net |