crypto/weakcryptospi/inc/keyconverter.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     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 __KEYCONVERTER_H__
       
    20 #define __KEYCONVERTER_H__
       
    21 
       
    22 #include <asymmetrickeys.h>
       
    23 
       
    24 /** 
       
    25 * @file
       
    26 * @internalComponent
       
    27 * @released 
       
    28 */
       
    29 
       
    30 namespace CryptoSpi
       
    31 	{
       
    32 	class CKeyPair;
       
    33 	class CKey;
       
    34 	}
       
    35 
       
    36 
       
    37 class KeyConverter
       
    38 	{
       
    39 	public:
       
    40 		static CryptoSpi::CKeyPair* CreateKeyPairL(const CDHKeyPair& aKeyPair);
       
    41 		static CryptoSpi::CKey* CreateKeyL(const CDHPrivateKey& aPrivateKey);
       
    42 		static CryptoSpi::CKey* CreateKeyL(const CDHPublicKey& aPublicKey);
       
    43 
       
    44 		static CryptoSpi::CKeyPair* CreateKeyPairL(const CDSAKeyPair& aKeyPair);
       
    45 		static CryptoSpi::CKey* CreateKeyL(const CDSAPrivateKey& aPrivateKey);
       
    46 		static CryptoSpi::CKey* CreateKeyL(const CDSAPublicKey& aPublicKey);
       
    47 
       
    48 		static CryptoSpi::CKeyPair* CreateKeyPairL(const CRSAKeyPair& aKeyPair);
       
    49 		static CryptoSpi::CKey* CreateKeyL(const CRSAPrivateKeyStandard& aPrivateKey);
       
    50 		static CryptoSpi::CKey* CreateKeyL(const CRSAPrivateKeyCRT& aPrivateKey);
       
    51 		static CryptoSpi::CKey* CreateKeyL(const CRSAPrivateKey& aPrivateKey);
       
    52 		static CryptoSpi::CKey* CreateKeyL(const CRSAPublicKey& aPublicKey);
       
    53 	};
       
    54 
       
    55 #endif	//	__KEYCONVERTER_H__