CRSAPKCS1v15Verifier Class Reference

class CRSAPKCS1v15Verifier : public CRSAVerifier

This class verifies RSA signatures given a message and its supposed signature. It follows the RSA PKCS#1 v1.5 with PKCS#1 v1.5 padding specification with the following exception: the VerifyL() function does not hash or in any way manipulate the input data before checking. Thus in order to verify RSA signatures in PKCS#1 v1.5 format, the input data needs to follow PKCS#1 v1.5 specification, i.e. be ASN.1 encoded and prefixed by ASN.1 encoded digestId.

Inherits from

Constructor & Destructor Documentation

CRSAPKCS1v15Verifier(const CRSAPublicKey &)

CRSAPKCS1v15Verifier(const CRSAPublicKey &aKey)[protected]

Parameters

const CRSAPublicKey & aKey

CRSAPKCS1v15Verifier(const CRSAPKCS1v15Verifier &)

CRSAPKCS1v15Verifier(const CRSAPKCS1v15Verifier &)[private]

Parameters

const CRSAPKCS1v15Verifier &

~CRSAPKCS1v15Verifier(void)

~CRSAPKCS1v15Verifier(void)[virtual]

The destructor frees all resources owned by the object, prior to its destruction.

Parameters

void

Member Functions Documentation

ConstructL(void)

voidConstructL(void)[protected]

Parameters

void

InverseSignLC(const CRSASignature &)

HBufC8 *InverseSignLC(const CRSASignature &aSignature)const [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

const CRSASignature & aSignatureThe signature to be verified

MaxInputLength(void)

TInt MaxInputLength(void)const [virtual]

Parameters

void

MaxOutputLength(void)

TInt MaxOutputLength(void)const [virtual]

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

Parameters

void

NewL(const CRSAPublicKey &)

IMPORT_C CRSAPKCS1v15Verifier *NewL(const CRSAPublicKey &aKey)[static]

Creates a new CRSAPKCS1v15Verifier object from a specified RSA public key.

leave
KErrKeySize If the key length is too small

Parameters

const CRSAPublicKey & aKeyThe RSA public key to be used for verifying

NewLC(const CRSAPublicKey &)

IMPORT_C CRSAPKCS1v15Verifier *NewLC(const CRSAPublicKey &aKey)[static]

Creates a new CRSAPKCS1v15Verifier object from a specified RSA public key.

The returned pointer is put onto the cleanup stack.

leave
KErrKeySize If the key length is too small

Parameters

const CRSAPublicKey & aKeyThe RSA public key to be used for verifying

operator=(const CRSAPKCS1v15Verifier &)

CRSAPKCS1v15Verifier &operator=(const CRSAPKCS1v15Verifier &)[private]

Parameters

const CRSAPKCS1v15Verifier &

Member Data Documentation

CPaddingPKCS1Signature * iPadding

CPaddingPKCS1Signature *iPadding[protected]

The PKCS#1 v1.5 signature padding

const CRSAPublicKey & iPublicKey

const CRSAPublicKey &iPublicKey[protected]

The RSA public key to be used for verification