CRSAVerifier Class Reference

#include <asymmetric.h>

class CRSAVerifier : public CVerifier< CRSASignature >

Detailed Description

Abstract base class for all RSA Verifiers.

Constructor & Destructor Documentation

CRSAVerifier ( void )

IMPORT_CCRSAVerifier(void)[protected]

Default constructor

Member Function Documentation

InverseSignLC ( const CRSASignature & )

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
aSignatureThe signature to be verified
Return Value
A pointer to a new buffer containing the result of the operation. The pointer is left on the cleanup stack.

MaxOutputLength ( void )

TInt MaxOutputLength(void)const [pure virtual]

Gets the maximum size of output that can be generated by this object.

Return Value
The maximum output length in bytes

VerifyL ( const TDesC8 &, const CRSASignature & )

IMPORT_C TBoolVerifyL(const TDesC8 &aInput,
const CRSASignature &aSignature
)const [virtual]

Verifies the specified digital signature

Parameters
aInputThe message digest that was originally signed
aSignatureThe signature to be verified
Return Value
Whether the signature is the result of signing aInput with the supplied key