CryptoSpi::MAsymmetricCipherBase Class Reference

class CryptoSpi::MAsymmetricCipherBase : public CryptoSpi::MPlugin

The Asymmetric Cipher Base definition. Intended to allow plug-ins to implement extensible Asymmetric cipher functionality, and to work with all known existing Asymmetric algorithms, e.g. RSA DSA 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.

SetCryptoModeL(TUid)

voidSetCryptoModeL(TUidaCryptoMode)[pure virtual]
Set the crypto mode of this cipher. Reset() is called to reinitialise the cipher.
leave
KErrNotSupported if the specified 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 aCryptoModeThe crypto mode

SetKeyL(const CKey &)

voidSetKeyL(const CKey &aKey)[pure virtual]
Set the public key of this cipher. Reset() is called to reinitialise the cipher.
leave
KErrArgument if aKey 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 & aKeyThe public key.

SetPaddingModeL(TUid)

voidSetPaddingModeL(TUidaPaddingMode)[pure virtual]
Set padding Mode of this cipher. Reset() is called to reinitialise the cipher.
leave
KErrNotSupported if the specified 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 aPaddingModeThe padding mode