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
-
CryptoSpi::MAsymmetricCipherBase
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)
void
|
SetCryptoModeL
|
(
|
TUid
|
aCryptoMode
|
)
|
[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
aCryptoMode
|
The crypto mode
|
SetKeyL(const CKey &)
void
|
SetKeyL
|
(
|
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
& aKey
|
The public key.
|
SetPaddingModeL(TUid)
void
|
SetPaddingModeL
|
(
|
TUid
|
aPaddingMode
|
)
|
[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
aPaddingMode
|
The padding mode
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.