os/security/crypto/weakcryptospi/test/tplugins/inc/tplugin01/rsakeypairgenextendimpl.h
Update contrib.
2 * Copyright (c) 2006-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 #ifndef __RSAKEYPAIRGENEXTENDIMPL_H__
21 #define __RSAKEYPAIRGENEXTENDIMPL_H__
31 #include "keypairgenimpl.h"
34 * Implementation of RSA key pair generation as described in PKCS#1 v1.5.
36 namespace SoftwareCrypto
38 NONSHARABLE_CLASS(CRSAKeyPairGenExtendImpl) : public CKeyPairGenImpl
42 static CRSAKeyPairGenExtendImpl* NewL(TUid aImplementationUid);
43 static CRSAKeyPairGenExtendImpl* NewLC(TUid aImplementationUid);
48 // from MKeyPairGenerator
49 void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair);
51 // Override CKeyPairGenImpl virtual functions
52 TUid ImplementationUid() const;
54 const CExtendedCharacteristics* GetExtendedCharacteristicsL();
55 static CExtendedCharacteristics* CreateExtendedCharacteristicsL();
59 ~CRSAKeyPairGenExtendImpl();
65 CRSAKeyPairGenExtendImpl(TUid aImplementationUid);
67 //Extended Characteristics
68 CExtendedCharacteristics* iExtendChars;
70 /// second phase of construction
75 #endif // __RSAKEYPAIRGENEXTENDIMPL_H__