#include <asymmetric.h>
| class CDSAVerifier : public CVerifier< CDSASignature > |
| Protected Attributes | |
|---|---|
| const CDSAPublicKey & | iPublicKey |
| Public Member Functions | |
|---|---|
| virtual TInt | MaxInputLength(void) |
| IMPORT_C CDSAVerifier * | NewL(const CDSAPublicKey &) |
| IMPORT_C CDSAVerifier * | NewLC(const CDSAPublicKey &) |
| virtual TBool | VerifyL(const TDesC8 &, const CDSASignature &) |
| Protected Member Functions | |
|---|---|
| CDSAVerifier(const CDSAPublicKey &) | |
Implementation of DSA signature verification as specified in FIPS 186-2 change request 1.
| const CDSAPublicKey & | iPublicKey | [protected] |
The DSA public key to be used for verification
| CDSAVerifier | ( | const CDSAPublicKey & | aKey | ) | [protected] |
| TInt | MaxInputLength | ( | void | ) | const [virtual] |
Reimplemented from MSignatureSystem::MaxInputLength(void)const
Gets the maximum size of input accepted by this object.
| IMPORT_C CDSAVerifier * | NewL | ( | const CDSAPublicKey & | aKey | ) | [static] |
Creates a new CDSAVerifier object from a specified DSA public key.
| Parameters | |
|---|---|
| aKey | The DSA public key to be used for verifying |
| 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 | |
|---|---|
| aKey | The DSA public key to be used for verifying |
| 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 | |
|---|---|
| aInput | A SHA-1 hash of the received message |
| aSignature | The signature to be verified |