
Public Member Functions | |
| def | __init__ (self, key) |
| def | encrypt (self, plaintext) |
| def | verify (self, signature) |
Public Member Functions inherited from wolfcrypt.ciphers._Rsa | |
| def | __init__ (self) |
| def | __del__ (self) |
Data Fields | |
| output_size | |
Data Fields inherited from wolfcrypt.ciphers._Rsa | |
| native_object | |
Additional Inherited Members | |
Static Public Attributes inherited from wolfcrypt.ciphers._Rsa | |
| int | RSA_MIN_PAD_SIZE = 11 |
| def wolfcrypt.ciphers.RsaPublic.encrypt | ( | self, | |
| plaintext | |||
| ) |
Encrypts **plaintext**, using the public key data in the
object. The plaintext's length must not be greater than:
**self.output_size - self.RSA_MIN_PAD_SIZE**
Returns a string containing the ciphertext.
| def wolfcrypt.ciphers.RsaPublic.verify | ( | self, | |
| signature | |||
| ) |
Verifies **signature**, using the public key data in the
object. The signature's length must be equal to:
**self.output_size**
Returns a string containing the plaintext.