Public Member Functions | Data Fields
wolfcrypt.ciphers.RsaPrivate Class Reference
Inheritance diagram for wolfcrypt.ciphers.RsaPrivate:
wolfcrypt.ciphers.RsaPublic wolfcrypt.ciphers._Rsa

Public Member Functions

def __init__ (self, key)
 
def decrypt (self, ciphertext)
 
def sign (self, plaintext)
 
- Public Member Functions inherited from wolfcrypt.ciphers.RsaPublic
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.RsaPublic
 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
 

Member Function Documentation

◆ decrypt()

def wolfcrypt.ciphers.RsaPrivate.decrypt (   self,
  ciphertext 
)
Decrypts **ciphertext**, using the private key data in the
object. The ciphertext's length must be equal to:

    **self.output_size**

Returns a string containing the plaintext.

◆ sign()

def wolfcrypt.ciphers.RsaPrivate.sign (   self,
  plaintext 
)
Signs **plaintext**, using the private 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 signature.