os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/keypairgenimpl.h
First public contribution.
2 * Copyright (c) 2007-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.
19 #ifndef __KEYPAIRGENIMPL_H__
20 #define __KEYPAIRGENIMPL_H__
28 #include "cryptokeypairgeneratorapi.h"
29 #include "keypairgeneratorplugin.h"
32 * Key pair generator plugin base class
34 namespace SoftwareCrypto
36 using namespace CryptoSpi;
38 NONSHARABLE_CLASS(CKeyPairGenImpl) : public CBase, public MKeyPairGenerator
42 // Override MPlugin virtual functions
44 TAny* GetExtension(TUid aExtensionId);
45 void GetCharacteristicsL(const TCharacteristics*& aPluginCharacteristics);
58 Second phase of construction. Always call ConstructL in the super-class
59 if you override this method.
61 virtual void ConstructL();
64 Helper function implemented by concrete cipher sub-class that allows
65 GetCharacteristicsL to return the correct characteristics object.
66 @return The implemention uid
68 virtual TUid ImplementationUid() const = 0;
72 #endif // __KEYPAIRGENIMPL_H__