os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/dhkeypairgenimpl.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 __DHKEYPAIRGENIMPL_H__
20 #define __DHKEYPAIRGENIMPL_H__
30 #include "keypairgenimpl.h"
33 * Implementation of DH Key Pair Generation as described in PKCS#3.
35 namespace SoftwareCrypto
37 using namespace CryptoSpi;
39 NONSHARABLE_CLASS(CDHKeyPairGenImpl) : public CKeyPairGenImpl
43 static CDHKeyPairGenImpl* NewL(void);
44 static CDHKeyPairGenImpl* NewLC(void);
52 // from MKeyPairGenerator
53 void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair);
55 // Override CKeyPairGenImpl virtual functions
56 TUid ImplementationUid() const;
58 const CExtendedCharacteristics* GetExtendedCharacteristicsL();
59 static CExtendedCharacteristics* CreateExtendedCharacteristicsL();
66 void ConstructL(void);
72 #endif // __DHKEYPAIRGENIMPL_H__