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.
29 #include "keyagreementimpl.h"
33 * Implementation of DH Key Agreement as described in PKCS#3.
35 namespace SoftwareCrypto
37 using namespace CryptoSpi;
39 NONSHARABLE_CLASS(CDHImpl) : public CKeyAgreementImpl
43 static CDHImpl* NewL(const CKey& aPrivateKey, const CCryptoParams* aParams);
44 static CDHImpl* NewLC(const CKey& aPrivateKey, const CCryptoParams* aParams);
50 CKey* AgreeL(const CKey& aOtherPublicKey, const CCryptoParams* aParams);
52 // Override CKeyAgreementImpl virtual functions
53 TUid ImplementationUid() const;
55 static CExtendedCharacteristics* CreateExtendedCharacteristicsL();
56 const CExtendedCharacteristics* GetExtendedCharacteristicsL();
66 #endif // __DHIMPL_H__