cryptoplugins/cryptospiplugins/source/softwarecrypto/dhkeypairgenimpl.h
changeset 19 cd501b96611d
equal deleted inserted replaced
15:da2ae96f639b 19:cd501b96611d
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __DHKEYPAIRGENIMPL_H__
       
    20 #define __DHKEYPAIRGENIMPL_H__
       
    21 
       
    22 /**
       
    23 @file 
       
    24 @internalComponent
       
    25 @released
       
    26 */
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <e32cmn.h>
       
    30 #include "keypairgenimpl.h"
       
    31 
       
    32 /**
       
    33  * Implementation of DH Key Pair Generation as described in PKCS#3.
       
    34  */
       
    35 namespace SoftwareCrypto
       
    36 	{
       
    37 using namespace CryptoSpi;
       
    38 
       
    39 	NONSHARABLE_CLASS(CDHKeyPairGenImpl) : public CKeyPairGenImpl
       
    40 		{
       
    41 	public:
       
    42 
       
    43 		static CDHKeyPairGenImpl* NewL(void);
       
    44 		static CDHKeyPairGenImpl* NewLC(void);
       
    45 
       
    46 		// Destructor
       
    47 		~CDHKeyPairGenImpl();
       
    48 
       
    49 		// from MPlugin
       
    50 		void Reset();
       
    51 
       
    52 		// from MKeyPairGenerator
       
    53 		void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair);
       
    54 
       
    55 		// Override CKeyPairGenImpl virtual functions
       
    56 		TUid ImplementationUid() const;
       
    57 
       
    58 		const CExtendedCharacteristics* GetExtendedCharacteristicsL();
       
    59 		static CExtendedCharacteristics* CreateExtendedCharacteristicsL();
       
    60 
       
    61 	private:
       
    62 		/**
       
    63 		Constructor
       
    64 		*/
       
    65 		CDHKeyPairGenImpl();
       
    66 		void ConstructL(void);
       
    67 
       
    68 	private:
       
    69 		};
       
    70 	}
       
    71 
       
    72 #endif // __DHKEYPAIRGENIMPL_H__