CDSASigner Class Reference

class CDSASigner : public CSigner< CDSASignature >

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

Inherits from

Constructor & Destructor Documentation

CDSASigner(const CDSAPrivateKey &)

CDSASigner ( const CDSAPrivateKey & aKey ) [protected]

Parameters

const CDSAPrivateKey & aKey

CDSASigner(const CDSASigner &)

CDSASigner ( const CDSASigner & ) [private]

Parameters

const CDSASigner &

Member Functions Documentation

MaxInputLength(void)

TInt MaxInputLength ( void ) const [virtual]

Parameters

void

NewL(const CDSAPrivateKey &)

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

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

Parameters

const CDSAPrivateKey & aKey The DSA private key to be used for signing

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

const CDSAPrivateKey & aKey The DSA private key to be used for signing

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.

panic
ECryptoPanicInputTooLarge If aInput is larger than MaxInputLength() , which is likely to happen if the caller has passed in something that has not been hashed.

Parameters

const TDesC8 & aInput A SHA-1 hash of the message to sign

operator=(const CDSASigner &)

CDSASigner & operator= ( const CDSASigner & ) [private]

Parameters

const CDSASigner &

Member Data Documentation

const CDSAPrivateKey & iPrivateKey

const CDSAPrivateKey & iPrivateKey [protected]

The DSA private key to be used for signing