CDSASigner Class Reference

#include <asymmetric.h>

class CDSASigner : public CSigner< CDSASignature >

Detailed Description

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

Member Attribute Documentation

iPrivateKey

const CDSAPrivateKey &iPrivateKey[protected]

The DSA private key to be used for signing

Constructor & Destructor Documentation

CDSASigner ( const CDSAPrivateKey & )

CDSASigner(const CDSAPrivateKey &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 CDSAPrivateKey & )

IMPORT_C CDSASigner *NewL(const CDSAPrivateKey &aKey)[static]

Creates a new CDSASigner object from a specified DSA private key.

Parameters
aKeyThe DSA private key to be used for signing
Return Value
A pointer to the new CDSASigner object

NewLC ( const CDSAPrivateKey & )

IMPORT_C CDSASigner *NewLC(const CDSAPrivateKey &aKey)[static]

Creates a new CDSASigner object from a specified DSA private key.

The returned pointer is put onto the cleanup stack.

Parameters
aKeyThe DSA private key to be used for signing
Return Value
A pointer to the new CDSASigner object

SignL ( const TDesC8 & )

CDSASignature *SignL(const TDesC8 &aInput)const [virtual]

Digitally signs the specified input message

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 message to sign
Return Value
A pointer to a new CSignature object
Panic Codes
ECryptoPanicInputTooLargeIf aInput is larger than