CDSAVerifier Class Reference

#include <asymmetric.h>

class CDSAVerifier : public CVerifier< CDSASignature >

Detailed Description

Implementation of DSA signature verification as specified in FIPS 186-2 change request 1.

Member Attribute Documentation

iPublicKey

const CDSAPublicKey &iPublicKey[protected]

The DSA public key to be used for verification

Constructor & Destructor Documentation

CDSAVerifier ( const CDSAPublicKey & )

CDSAVerifier(const CDSAPublicKey &aKey)[protected]

Member Function Documentation

MaxInputLength ( void )

TInt MaxInputLength(void)const [virtual]

Gets the maximum size of input accepted by this object.

Return Value
The maximum length allowed in bytes

NewL ( const CDSAPublicKey & )

IMPORT_C CDSAVerifier *NewL(const CDSAPublicKey &aKey)[static]

Creates a new CDSAVerifier object from a specified DSA public key.

Parameters
aKeyThe DSA public key to be used for verifying
Return Value
A pointer to the new CDSAVerifier object

NewLC ( const CDSAPublicKey & )

IMPORT_C CDSAVerifier *NewLC(const CDSAPublicKey &aKey)[static]

Creates a new CDSAVerifier object from a specified DSA public key.

The returned pointer is put onto the cleanup stack.

Parameters
aKeyThe DSA public key to be used for verifying
Return Value
A pointer to the new CDSAVerifier object

VerifyL ( const TDesC8 &, const CDSASignature & )

TBool VerifyL(const TDesC8 &aInput,
const CDSASignature &aSignature
)const [virtual]

Verifies the specified digital signature

Note that in order to be interoperable and compliant with the DSS, aInput must be the result of a SHA-1 hash.

Parameters
aInputA SHA-1 hash of the received message
aSignatureThe signature to be verified
Return Value
Whether the signature is the result of signing aInput with the supplied key