os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/keypairgenimpl.cpp
First public contribution.
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.
23 #include "keypairgenimpl.h"
25 #include <cryptospi/cryptospidef.h>
26 #include <cryptospi/plugincharacteristics.h>
27 #include "pluginconfig.h"
29 #include "common/inlines.h"
31 using namespace SoftwareCrypto;
33 CKeyPairGenImpl::CKeyPairGenImpl()
37 void CKeyPairGenImpl::ConstructL()
41 CKeyPairGenImpl::~CKeyPairGenImpl()
45 void CKeyPairGenImpl::Close()
50 TAny* CKeyPairGenImpl::GetExtension(TUid /*aExtensionId*/)
55 void CKeyPairGenImpl::GetCharacteristicsL(const TAny*& aPluginCharacteristics)
57 TInt numCiphers = sizeof(KKeyPairGeneratorCharacteristics)/sizeof(TAsymmetricKeypairGeneratorCharacteristics*);
58 TInt32 implUid = ImplementationUid().iUid;
59 for (TInt i = 0; i < numCiphers; ++i)
61 if (KKeyPairGeneratorCharacteristics[i]->cmn.iImplementationUID == implUid)
63 aPluginCharacteristics = KKeyPairGeneratorCharacteristics[i];