#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
IMPORT_C CDSAVerifier * | NewL | ( | const CDSAPublicKey & | aKey | ) | [static] |
Creates a new CDSAVerifier object from a specified DSA public key.
Parameter | Description |
---|---|
aKey | The DSA public key to be used for verifying |
Returns: A pointer to the new CDSAVerifier object
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.
Parameter | Description |
---|---|
aKey | The DSA public key to be used for verifying |
Returns: A pointer to the new CDSAVerifier object
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.
Parameter | Description |
---|---|
aInput | A SHA-1 hash of the received message |
aSignature | The signature to be verified |
Returns: Whether the signature is the result of signing aInput with the supplied key