os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/keypairgenimpl.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200 (2012-06-15)
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 __KEYPAIRGENIMPL_H__
    20 #define __KEYPAIRGENIMPL_H__
    21 
    22 /**
    23 @file 
    24 @internalComponent
    25 @released
    26 */
    27 
    28 #include "cryptokeypairgeneratorapi.h"
    29 #include "keypairgeneratorplugin.h"
    30 
    31 /**
    32  * Key pair generator plugin base class
    33  */
    34 namespace SoftwareCrypto
    35 	{
    36 	using namespace CryptoSpi;
    37 	
    38 	NONSHARABLE_CLASS(CKeyPairGenImpl) : public CBase, public MKeyPairGenerator
    39 		{
    40 	public:
    41 
    42 		// Override MPlugin virtual functions
    43 		void Close();
    44 		TAny* GetExtension(TUid aExtensionId);
    45 		void GetCharacteristicsL(const TCharacteristics*& aPluginCharacteristics);
    46 		// End of MPlugin
    47 
    48 		// Destructor
    49 		~CKeyPairGenImpl();
    50 
    51 	protected:
    52 		/**
    53 		Constructor
    54 		*/
    55 		CKeyPairGenImpl();
    56 			
    57 		/**
    58 		Second phase of construction. Always call ConstructL in the super-class
    59 		if you override this method.
    60 		*/
    61 		virtual void ConstructL();
    62 		
    63 		/**
    64 		Helper function implemented by concrete cipher sub-class that allows
    65 		GetCharacteristicsL to return the correct characteristics object.
    66 		@return The implemention uid
    67 		*/
    68 		virtual TUid ImplementationUid() const = 0;
    69 		};
    70 	}
    71 
    72 #endif // __KEYPAIRGENIMPL_H__