Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Key Pair Generator Abstract interface
26 #ifndef __CRYPTOAPI_KEYPAIRGENERATORPLUGIN_H__
27 #define __CRYPTOAPI_KEYPAIRGENERATORPLUGIN_H__
29 #include <cryptospi/cryptoplugin.h>
35 The Key Pair Generator definition. Intended to allow plug-ins
36 to implement extensible Key Pair Generator functionality, and
37 to work with all known existing Key pair Generator algorithms
41 class MKeyPairGenerator : public MPlugin
47 @param aKeySize The algorithm-specific metric as a number of bits
48 @param aKeyParameters The list of algorithm-specific parameters used by the generator to generate the key pair
49 @param aKeyPair The generated key pair
51 @leave ... Any of the crypto error codes defined in
52 cryptospi_errs.h or any of the system-wide error codes.
54 virtual void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair) = 0;
58 class MAsyncKeyPairGenerator : public MPlugin
64 @param aKeySize The algorithm-specific metric as a number of bits
65 @param aKeyParameters The list of algorithm-specific parameters used by the generator to generate the key pair
66 @param aKeyPair The generated key pair
69 @leave ... Any of the crypto error codes defined in
70 cryptospi_errs.h or any of the system-wide error codes.
72 virtual void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair, TRequestStatus& aRequestStatus) = 0;
75 Cancel the outstanding request
77 virtual void Cancel() = 0;
81 } // namespace CryptoSpi
83 #endif //__CRYPTOAPI_KEYPAIRGENERATORPLUGIN_H__