#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.
CDSASigner | ( | const CDSAPrivateKey & | 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 CDSASigner * | NewL | ( | const CDSAPrivateKey & | aKey | ) | [static] |
Creates a new CDSASigner object from a specified DSA private key.
Parameters | |
---|---|
aKey | The DSA private key to be used for signing |
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 | |
---|---|
aKey | The DSA private key to be used for signing |
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.
Parameters | |
---|---|
aInput | A SHA-1 hash of the message to sign |
Panic Codes | |
---|---|
ECryptoPanicInputTooLarge | If aInput is larger than |