crypto/weakcryptospi/test/tplugins/inc/tplugin01/rsakeypairgenextendimpl.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2006-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 * rsakeypairgenimpl.h
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __RSAKEYPAIRGENEXTENDIMPL_H__
       
    21 #define __RSAKEYPAIRGENEXTENDIMPL_H__
       
    22 
       
    23 /**
       
    24 @file 
       
    25 @internalComponent
       
    26 @released
       
    27 */
       
    28 
       
    29 #include <e32base.h>
       
    30 #include <e32cmn.h>
       
    31 #include "keypairgenimpl.h"
       
    32 
       
    33 /**
       
    34  * Implementation of RSA key pair generation as described in PKCS#1 v1.5.
       
    35  */
       
    36 namespace SoftwareCrypto
       
    37 	{
       
    38 	NONSHARABLE_CLASS(CRSAKeyPairGenExtendImpl) : public CKeyPairGenImpl
       
    39 		{
       
    40 	public:
       
    41 	
       
    42 		static CRSAKeyPairGenExtendImpl* NewL(TUid aImplementationUid);
       
    43 		static CRSAKeyPairGenExtendImpl* NewLC(TUid aImplementationUid);
       
    44 
       
    45 		// from MPlugin
       
    46 		void Reset();
       
    47 
       
    48 		// from MKeyPairGenerator
       
    49 		void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair);
       
    50 		
       
    51 		// Override CKeyPairGenImpl virtual functions
       
    52 		TUid ImplementationUid() const;
       
    53 		
       
    54 		const CExtendedCharacteristics* GetExtendedCharacteristicsL();
       
    55 		static CExtendedCharacteristics* CreateExtendedCharacteristicsL();
       
    56 
       
    57 		
       
    58 		// Destructor
       
    59 		~CRSAKeyPairGenExtendImpl();
       
    60 
       
    61 	private:
       
    62 		/**
       
    63 		Constructor
       
    64 		*/
       
    65 		CRSAKeyPairGenExtendImpl(TUid aImplementationUid);
       
    66 		
       
    67 		//Extended Characteristics
       
    68 		CExtendedCharacteristics* iExtendChars;
       
    69 			
       
    70 		/// second phase of construction
       
    71 		void ConstructL();
       
    72 		};
       
    73 	}
       
    74 
       
    75 #endif // __RSAKEYPAIRGENEXTENDIMPL_H__