sl@0: /* sl@0: * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include "keypairgenimpl.h" sl@0: sl@0: #include sl@0: #include sl@0: #include "pluginconfig.h" sl@0: sl@0: #include "../../../source/common/inlines.h" sl@0: sl@0: using namespace SoftwareCrypto; sl@0: sl@0: CKeyPairGenImpl::CKeyPairGenImpl(TUid aImplementationUid) : iImplementationUid(aImplementationUid) sl@0: { sl@0: } sl@0: sl@0: void CKeyPairGenImpl::ConstructL() sl@0: { sl@0: } sl@0: sl@0: CKeyPairGenImpl::~CKeyPairGenImpl() sl@0: { sl@0: } sl@0: sl@0: void CKeyPairGenImpl::Close() sl@0: { sl@0: delete this; sl@0: } sl@0: sl@0: TAny* CKeyPairGenImpl::GetExtension(TUid /*aExtensionId*/) sl@0: { sl@0: return 0; sl@0: } sl@0: sl@0: void CKeyPairGenImpl::GetCharacteristicsL(const TAny*& aPluginCharacteristics) sl@0: { sl@0: TInt numCiphers = sizeof(KKeyPairGeneratorCharacteristics)/sizeof(TAsymmetricKeypairGeneratorCharacteristics*); sl@0: TInt32 implUid = ImplementationUid().iUid; sl@0: for (TInt i = 0; i < numCiphers; ++i) sl@0: { sl@0: if (KKeyPairGeneratorCharacteristics[i]->cmn.iImplementationUID == implUid) sl@0: { sl@0: aPluginCharacteristics = KKeyPairGeneratorCharacteristics[i]; sl@0: break; sl@0: } sl@0: } sl@0: } sl@0: sl@0: