#include <asymmetric.h>
class CDSASigner : public CSigner< CDSASignature > |
Protected Attributes | |
---|---|
const CDSAPrivateKey & | iPrivateKey |
Public Member Functions | |
---|---|
virtual TInt | MaxInputLength(void) |
IMPORT_C CDSASigner * | NewL(const CDSAPrivateKey &) |
IMPORT_C CDSASigner * | NewLC(const CDSAPrivateKey &) |
virtual CDSASignature * | SignL(const TDesC8 &) |
Protected Member Functions | |
---|---|
CDSASigner(const CDSAPrivateKey &) |
Implementation of DSA signing as specified in FIPS 186-2 change request 1.
IMPORT_C CDSASigner * | NewL | ( | const CDSAPrivateKey & | aKey | ) | [static] |
Creates a new CDSASigner object from a specified DSA private key.
Parameter | Description |
---|---|
aKey | The DSA private key to be used for signing |
Returns: A pointer to the new CDSASigner object
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.
Parameter | Description |
---|---|
aKey | The DSA private key to be used for signing |
Returns: A pointer to the new CDSASigner object
CDSASignature * | SignL | ( | const TDesC8 & | aInput | ) | const [virtual] |
Reimplemented from CSigner< CDSASignature >::SignL(const TDesC8 &)const
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.
Parameter | Description |
---|---|
aInput | A SHA-1 hash of the message to sign |
Returns: A pointer to a new CSignature object