os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/rsakeypairgenimpl.h
First public contribution.
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.
19 #ifndef __RSAKEYPAIRGENIMPL_H__
20 #define __RSAKEYPAIRGENIMPL_H__
30 #include "keypairgenimpl.h"
33 * Implementation of RSA key pair generation as described in PKCS#1 v1.5.
35 namespace SoftwareCrypto
37 NONSHARABLE_CLASS(CRSAKeyPairGenImpl) : public CKeyPairGenImpl
41 static CRSAKeyPairGenImpl* NewL();
42 static CRSAKeyPairGenImpl* NewLC();
47 // from MKeyPairGenerator
48 void GenerateKeyPairL(TInt aKeySize, const CCryptoParams& aKeyParameters, CKeyPair*& aKeyPair);
50 // Override CKeyPairGenImpl virtual functions
51 TUid ImplementationUid() const;
53 const CExtendedCharacteristics* GetExtendedCharacteristicsL();
54 static CExtendedCharacteristics* CreateExtendedCharacteristicsL();
57 ~CRSAKeyPairGenImpl();
65 /// second phase of construction
70 #endif // __RSAKEYPAIRGENIMPL_H__