#include <asymmetric.h>
| class CRSAVerifier : public CVerifier< CRSASignature > |
| Public Member Functions | |
|---|---|
| pure virtual HBufC8 * | InverseSignLC(const CRSASignature &) |
| pure virtual TInt | MaxOutputLength(void) |
| virtual IMPORT_C TBool | VerifyL(const TDesC8 &, const CRSASignature &) |
| Protected Member Functions | |
|---|---|
| CRSAVerifier(void) | |
Abstract base class for all RSA Verifiers.
| HBufC8 * | InverseSignLC | ( | const CRSASignature & | aSignature | ) | const [pure virtual] |
Performs a decryption operation on a signature using the public key.
This is the inverse of the sign operation, which performs a encryption operation on its input data using the private key. Although this can be used to verify signatures, CRSAVerifier::VerifyL should be used in preference. This method is however required by some security protocols.
| Parameter | Description |
|---|---|
| aSignature | The signature to be verified |
Returns: A pointer to a new buffer containing the result of the operation. The pointer is left on the cleanup stack.
| TInt | MaxOutputLength | ( | void | ) | const [pure virtual] |
Gets the maximum size of output that can be generated by this object.
Returns: The maximum output length in bytes
| IMPORT_C TBool | VerifyL | ( | const TDesC8 & | aInput, |
| const CRSASignature & | aSignature | |||
| ) | const [virtual] | |||
Verifies the specified digital signature
| Parameter | Description |
|---|---|
| aInput | The message digest that was originally signed |
| aSignature | The signature to be verified |
Returns: Whether the signature is the result of signing aInput with the supplied key