#include <cryptospi/pluginselectorbase.h>
| class CryptoSpi::MPluginSelector |
| Public Member Functions | |
|---|---|
| pure virtual | ~MPluginSelector() |
| pure virtual void | CreateAsymmetricCipherL(CAsymmetricCipher *&, TUid, const CKey &, TUid, TUid, const CCryptoParams *) |
| pure virtual void | CreateAsyncAsymmetricCipherL(CAsyncAsymmetricCipher *&, TUid, const CKey &, TUid, TUid, const CCryptoParams *) |
| pure virtual void | CreateAsyncHashL(CAsyncHash *&, TUid, TUid, const CKey *, const CCryptoParams *) |
| pure virtual void | CreateAsyncKeyAgreementL(CAsyncKeyAgreement *&, TUid, const CKey &, const CCryptoParams *) |
| pure virtual void | CreateAsyncKeyPairGeneratorL(CAsyncKeyPairGenerator *&, TUid, const CCryptoParams *) |
| pure virtual void | CreateAsyncRandomL(CAsyncRandom *&, TUid, const CCryptoParams *) |
| pure virtual void | CreateAsyncSignerL(CAsyncSigner *&, TUid, const CKey &, TUid, const CCryptoParams *) |
| pure virtual void | CreateAsyncSymmetricCipherL(CAsyncSymmetricCipher *&, TUid, const CKey &, TUid, TUid, TUid, const CCryptoParams *) |
| pure virtual void | CreateAsyncVerifierL(CAsyncVerifier *&, TUid, const CKey &, TUid, const CCryptoParams *) |
| pure virtual void | CreateHashL(CHash *&, TUid, TUid, const CKey *, const CCryptoParams *) |
| pure virtual void | CreateKeyAgreementL(CKeyAgreement *&, TUid, const CKey &, const CCryptoParams *) |
| pure virtual void | CreateKeyPairGeneratorL(CKeyPairGenerator *&, TUid, const CCryptoParams *) |
| pure virtual void | CreateRandomL(CRandom *&, TUid, const CCryptoParams *) |
| pure virtual void | CreateSignerL(CSigner *&, TUid, const CKey &, TUid, const CCryptoParams *) |
| pure virtual void | CreateSymmetricCipherL(CSymmetricCipher *&, TUid, const CKey &, TUid, TUid, TUid, const CCryptoParams *) |
| pure virtual void | CreateVerifierL(CVerifier *&, TUid, const CKey &, TUid, const CCryptoParams *) |
Base class for the selectors
| void | CreateAsymmetricCipherL | ( | CAsymmetricCipher *& | aCipher, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aCryptoMode, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of an asymmetric cipher
| Parameters | |
|---|---|
| aCipher | A reference to a pointer that should be set to point to the new asymmetric cipher object. |
| aAlgorithmUid | The asymmetric cipher algorithm to use (e.g. KRsaCipherUid) |
| aKey | The encryption/decryption key. |
| aCryptoMode | whether to encrypt or decrypt |
| aPaddingMode | The padding mode to use |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncAsymmetricCipherL | ( | CAsyncAsymmetricCipher *& | aCipher, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aCryptoMode, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of an asynchronous asymmetric cipher
| Parameters | |
|---|---|
| aCipher | A reference to a pointer that should be set to point to the new asymmetric cipher object. |
| aAlgorithmUid | The asymmetric cipher algorithm to use (e.g. KRsaCipherUid) |
| aKey | The encryption/decryption key. |
| aCryptoMode | whether to encrypt or decrypt |
| aPaddingMode | The padding mode to use |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncHashL | ( | CAsyncHash *& | aHash, |
| TUid | aAlgorithmUid, | |||
| TUid | aOperationMode, | |||
| const CKey * | aKey, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Deprecated
Create a new instance of a asynchronous hash object
| Parameters | |
|---|---|
| aHash | The pointer to CHash |
| aAlgorithmUid | The specific hash algorithm e.g. MD2, SHA1 |
| aOperationMode | The operation mode of the hash e.g. Hash mode, Hmac mode |
| aKey | The key for Hmac mode, which should be NULL in Hash mode |
| aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncKeyAgreementL | ( | CAsyncKeyAgreement *& | aKeyAgreement, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aPrivateKey, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a asynchronous key agreement system.
| Parameters | |
|---|---|
| aKeyAgreement | A reference to a pointer that should be set to point to the new key agreement object. |
| aAlgorithmUid | The algorithm to use |
| aPrivateKey | The private key to combine with the other parties public key during the agreement. |
| aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncKeyPairGeneratorL | ( | CAsyncKeyPairGenerator *& | aKeyPairGenerator, |
| TUid | aAlgorithmUid, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a asynchronous key pair generator.
| Parameters | |
|---|---|
| aKeyPairGenerator | A reference to a pointer that should be set to point to the new asymmetric key pair generator object. |
| aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncRandomL | ( | CAsyncRandom *& | aRandom, |
| TUid | aAlgorithmUid, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a asynchronous random object.
| Parameters | |
|---|---|
| aRandom | A reference to a pointer that should be set to point to the new CRandom object. |
| aAlgorithmUid | The algorithm to use |
| aAlgorithmParams | Parameters that are specific this algorithm. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncSignerL | ( | CAsyncSigner *& | aSigner, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a asynchronous signer.
| Parameters | |
|---|---|
| aSigner | A reference to a pointer that should be set to point to the new signer object. |
| aAlgorithmUid | The algorithm to use. |
| aKey | The signing key. |
| aPaddingMode | The padding mode of the signer. |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncSymmetricCipherL | ( | CAsyncSymmetricCipher *& | aCipher, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aCryptoMode, | |||
| TUid | aOperationMode, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new synchronous instance of a asynchronous symmetric cipher
| Parameters | |
|---|---|
| aCipher | A reference to a pointer that should be set to point to the new symmetric object. |
| aAlgorithmUid | The algorithm to use |
| aKey | The encryption/decryption key. |
| aCryptoMode | The Symmetric cipher mode. |
| aOperationMode | The Symmetric cipher operation mode. |
| aPaddingMode | The Symmetric cipher padding mode. |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateAsyncVerifierL | ( | CAsyncVerifier *& | aVerifier, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a asynchronous verifier.
| Parameters | |
|---|---|
| aVerifier | A reference to a pointer that should be set to point to the new verifier object. |
| aAlgorithmUid | The algorithm to use |
| aKey | The key to verify the signature with. |
| aPaddingMode | The padding mode of the signer. |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateHashL | ( | CHash *& | aHash, |
| TUid | aAlgorithmUid, | |||
| TUid | aOperationMode, | |||
| const CKey * | aKey, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Deprecated
Create a new instance of a hash object
| Parameters | |
|---|---|
| aHash | The pointer to CHash |
| aAlgorithmUid | The specific hash algorithm e.g. MD2, SHA1 |
| aOperationMode | The operation mode of the hash e.g. Hash mode, Hmac mode |
| aKey | The key for Hmac mode, which should be NULL in Hash mode |
| aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateKeyAgreementL | ( | CKeyAgreement *& | aKeyAgreement, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aPrivateKey, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a key agreement system.
| Parameters | |
|---|---|
| aKeyAgreement | A reference to a pointer that should be set to point to the new key agreement object. |
| aAlgorithmUid | The algorithm to use |
| aPrivateKey | The private key to combine with the other parties public key during the agreement. |
| aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateKeyPairGeneratorL | ( | CKeyPairGenerator *& | aKeyPairGenerator, |
| TUid | aKeyAlgorithmUid, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a key pair generator.
| Parameters | |
|---|---|
| aKeyPairGenerator | A reference to a pointer that should be set to point to the new asymmetric key pair generator object. |
| aKeyAlgorithmUid | The algorithm UID |
| aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateRandomL | ( | CRandom *& | aRandom, |
| TUid | aAlgorithmUid, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a Random object.
| Parameters | |
|---|---|
| aRandom | A reference to a pointer that should be set to point to the new CRandom object. |
| aAlgorithmUid | The algorithm to use |
| aAlgorithmParams | Parameters that are specific this algorithm. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateSignerL | ( | CSigner *& | aSigner, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a synchronous signer.
| Parameters | |
|---|---|
| aSigner | A reference to a pointer that should be set to point to the new signer object. |
| aAlgorithmUid | The algorithm to use. |
| aKey | The signing key. |
| aPaddingMode | The padding mode of the signer. |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateSymmetricCipherL | ( | CSymmetricCipher *& | aCipher, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aCryptoMode, | |||
| TUid | aOperationMode, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new synchronous instance of a symmetric cipher
| Parameters | |
|---|---|
| aCipher | A reference to a pointer that should be set to point to the new symmetric object. |
| aAlgorithmUid | The algorithm to use |
| aKey | The encryption/decryption key. |
| aCryptoMode | The Symmetric cipher mode. |
| aOperationMode | The Symmetric cipher operation mode. |
| aPaddingMode | The Symmetric cipher padding mode. |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |
| void | CreateVerifierL | ( | CVerifier *& | aVerifier, |
| TUid | aAlgorithmUid, | |||
| const CKey & | aKey, | |||
| TUid | aPaddingMode, | |||
| const CCryptoParams * | aAlgorithmParams | |||
| ) | [pure virtual] | |||
Creates a new instance of a verifier.
| Parameters | |
|---|---|
| aVerifier | A reference to a pointer that should be set to point to the new verifier object. |
| aAlgorithmUid | The algorithm to use |
| aKey | The key to verify the signature with. |
| aPaddingMode | The padding mode of the signer. |
| aAlgorithmParams | Parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
| Leave Codes | |
|---|---|
| KErrNone | if successful; otherwise, a system wide error code. |