CDSAVerifier Class Reference

#include <asymmetric.h>

class CDSAVerifier : public CVerifier< CDSASignature >

Inherits from

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]

NewL ( const CDSAPublicKey & )

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

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

ParameterDescription
aKeyThe DSA public key to be used for verifying

Returns: 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.

ParameterDescription
aKeyThe DSA public key to be used for verifying

Returns: 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.

ParameterDescription
aInputA SHA-1 hash of the received message
aSignatureThe signature to be verified

Returns: Whether the signature is the result of signing aInput with the supplied key