crypto/weakcryptospi/source/asymmetric/dsakeypairshim.h
changeset 19 cd501b96611d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/weakcryptospi/source/asymmetric/dsakeypairshim.h	Fri Nov 06 13:21:00 2009 +0200
@@ -0,0 +1,58 @@
+/*
+* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+/**
+ @file
+ @internalComponent
+ @released
+*/
+
+#ifndef __DSAKEYPAIRSHIM_H__
+#define __DSAKEYPAIRSHIM_H__
+
+#include "asymmetrickeys.h"
+
+/** 
+* This class generates an DSA public/private key pair via CryptoSPI
+*/
+
+NONSHARABLE_CLASS(CDSAKeyPairShim) : public CDSAKeyPair
+	{
+public:
+	/**
+	 * Creates a new DSA key pair
+	 */
+	static CDSAKeyPairShim* NewLC(TUint aKeyBits);
+
+	~CDSAKeyPairShim(void);
+
+protected:
+	/** Constructor */
+	CDSAKeyPairShim(void);
+
+	/** 
+	 * 2nd stage constructor
+	 */
+	void ConstructL(TUint aKeyBits);
+
+private:
+	CDSAKeyPairShim(const CDSAKeyPairShim&);
+	CDSAKeyPairShim& operator=(const CDSAKeyPairShim&);	
+	};
+
+#endif	//	__DSAKEYPAIRSHIM_H__