os/security/cryptoservices/filebasedcertificateandkeystores/source/shared/DHParams.cpp
Update contrib.
2 * Copyright (c) 2004-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.
20 #include "fsdatatypes.h"
22 EXPORT_C CDHParams::~CDHParams()
28 EXPORT_C CDHParams::CDHParams(const RInteger aN, const RInteger aG)
33 EXPORT_C CDHParams* CDHParams::NewL(const TInteger& aN, const TInteger& aG)
35 RInteger n = RInteger::NewL(aN);
36 CleanupStack::PushL(n);
37 RInteger g = RInteger::NewL(aG);
38 CleanupStack::PushL(g);
39 CDHParams* self = new (ELeave) CDHParams(n, g);
40 CleanupStack::Pop(2); // g, n
44 EXPORT_C RInteger CDHParams::TakeN()
51 EXPORT_C RInteger CDHParams::TakeG()