#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.
IMPORT_C | CRSAVerifier | ( | void | ) | [protected] |
Default constructor
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.
Parameters | |
---|---|
aSignature | The signature to be verified |
TInt | MaxOutputLength | ( | void | ) | const [pure virtual] |
Gets the maximum size of output that can be generated by this object.
IMPORT_C TBool | VerifyL | ( | const TDesC8 & | aInput, |
const CRSASignature & | aSignature | |||
) | const [virtual] |
Verifies the specified digital signature
Parameters | |
---|---|
aInput | The message digest that was originally signed |
aSignature | The signature to be verified |