Inheritance diagram for SiRSA:
Public Member Functions | |
SiRSA (RSA *key) | |
constructor | |
virtual | ~SiRSA () |
destructor | |
virtual OFCondition | sign (const unsigned char *inputHash, unsigned long inputHashSize, E_MACType inputHashAlgorithm, unsigned char *outputSignature, unsigned long &outputSignatureSize) |
creates a signature. | |
virtual OFCondition | verify (const unsigned char *inputHash, unsigned long inputHashSize, E_MACType inputHashAlgorithm, const unsigned char *inputSignature, unsigned long inputSignatureSize, OFBool &verified) |
verifies a signature. | |
virtual unsigned long | getSize () const |
returns the size of a block of encrypted/decrypted ciphertext in bytes. | |
virtual E_KeyType | keyType () const |
returns the type of public key algorithm computed by this object | |
Private Member Functions | |
SiRSA (SiRSA &arg) | |
private undefined copy constructor | |
SiRSA & | operator= (SiRSA &arg) |
private undefined copy assignment operator | |
Private Attributes | |
RSA * | rsa |
RSA key used for signature/verification. |
Definition at line 53 of file sirsa.h.
|
constructor
|
|
returns the size of a block of encrypted/decrypted ciphertext in bytes. The result depends on the public key algorithm, key size and padding scheme. In general the input to decrypt() or encrypt() must be less than or equal to this block size. The output of decrypt() or encrypt() is always equal to this block size.
Implements SiAlgorithm. |
|
returns the type of public key algorithm computed by this object
Implements SiAlgorithm. |
|
creates a signature.
Implements SiAlgorithm. |
|
verifies a signature.
Implements SiAlgorithm. |