CryptoSpi::MSignatureBase Class Reference

class CryptoSpi::MSignatureBase : public CryptoSpi::MPlugin

The Signer definition. Intended to allow plug-ins to implement extensible signature signer functionality, and to work with all known existing signature algorithms, e.g. DSA, RSA etc

Inherits from

Member Functions Documentation

GetMaximumInputLengthL()

TInt GetMaximumInputLengthL ( ) const [pure virtual]
Gets the maximum size of input accepted by this object.
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

GetMaximumOutputLengthL()

TInt GetMaximumOutputLengthL ( ) const [pure virtual]
Gets the maximum size of output that can be generated by this object.
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

SetKeyL(const CKey &)

void SetKeyL ( const CKey & aPrivateKey ) [pure virtual]
Set the private key for the signer or verifier. Reset() is called to reinitialise the cipher.
leave
KErrArgument if key is not of the expected type.
leave
KErrNotSupported if the key is not of valid length.
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

Parameters

const CKey & aPrivateKey The privatekey that used to sign

SetPaddingModeL(TUid)

void SetPaddingModeL ( TUid aPaddingMode ) [pure virtual]
Set the padding mode for the signer or verifier. Reset() is called to reinitialise the cipher.
leave
KErrNotSupported if the padding mode is not supported.
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

Parameters

TUid aPaddingMode The padding mode of the signer