os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/pluginconfig.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/pluginconfig.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,538 @@
     1.4 +/*
     1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +/**
    1.23 + @file
    1.24 + @@internalComponent
    1.25 + @released
    1.26 +*/
    1.27 +
    1.28 +#ifndef __CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__
    1.29 +#define __CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__
    1.30 +
    1.31 +#include <cryptospi/cryptoparams.h>
    1.32 +#include <e32cmn.h>
    1.33 +#include <cryptospi/romlit.h>
    1.34 +#include <cryptospi/cryptospidef.h>
    1.35 +
    1.36 +namespace SoftwareCrypto
    1.37 +	{
    1.38 +	using namespace CryptoSpi;
    1.39 +
    1.40 +	/**
    1.41 +	Creator Name
    1.42 +	*/
    1.43 +	_ROMLIT16(KSymbian, "Symbian");
    1.44 +	
    1.45 +	/**
    1.46 +	implementation Name
    1.47 +	*/
    1.48 +	_ROMLIT16(KMd2Description, "Md2");
    1.49 +	_ROMLIT16(KMd4Description, "Md4");
    1.50 +	_ROMLIT16(KMd5Description, "Md5");
    1.51 +	_ROMLIT16(KSha1Description, "Sha1");
    1.52 +	_ROMLIT16(KSha224Description, "Sha224");
    1.53 +	_ROMLIT16(KSha256Description, "Sha256");
    1.54 +	_ROMLIT16(KSha384Description, "Sha384");
    1.55 +	_ROMLIT16(KSha512Description, "Sha512");
    1.56 +
    1.57 +	_ROMLIT16(KRandomDescription, "Random");
    1.58 +	_ROMLIT16(KDesDescription, "Des");
    1.59 +	_ROMLIT16(K3DesDescription, "3Des");
    1.60 +	_ROMLIT16(KAesDescription, "Aes");
    1.61 +	_ROMLIT16(KRC2Description, "RC2");
    1.62 +	_ROMLIT16(KARC4Description, "ARC4");
    1.63 +	_ROMLIT16(KRsaCipherDescription, "Rsa");
    1.64 +	_ROMLIT16(KRsaSignerDescription, "RsaSigner");
    1.65 +	_ROMLIT16(KDsaSignerDescription, "DsaSigner");
    1.66 +	_ROMLIT16(KRsaVerifierDescription, "RsaVerifier");
    1.67 +	_ROMLIT16(KDsaVerifierDescription, "DsaVerifier");
    1.68 +	_ROMLIT16(KDHDescription, "DH");
    1.69 +	_ROMLIT16(KSymmetricKeyGeneratorDescription, "Symmetric Key Generator");
    1.70 +	_ROMLIT16(KRsaKeyPairDescription, "Rsa Key Pair Generator");
    1.71 +	_ROMLIT16(KDsaKeyPairDescription, "Dsa Key Pair Generator");
    1.72 +	_ROMLIT16(KDhKeyPairDescription, "DH Key Pair Generator");
    1.73 +	/**
    1.74 +	For each crypto algorithm implemented in this plugin define
    1.75 +		a plugin-wide unique id to identify it
    1.76 +		a UID that contains the above id
    1.77 +		a table of characteristics
    1.78 +	*/	
    1.79 +
    1.80 +	
    1.81 +	/**
    1.82 +	Md2 Characteristics
    1.83 +	*/
    1.84 +	static const TInt32 KCryptoPluginMd2 = 0x102831D0;	
    1.85 +	static const TUid KCryptoPluginMd2Uid={KCryptoPluginMd2};
    1.86 +	static const TInt32 KMd2OperationModes[]={KHashMode, KHmacMode};
    1.87 +	static const THashCharacteristics KMd2_1 = {KHashInterface, KAlgorithmHashMd2, KCryptoPluginMd2, &KSymbian, EFalse, EFalse, 6, &KMd2Description, 100, 90, 128, 128, KMd2OperationModes, sizeof(KMd2OperationModes)/sizeof(KMd2OperationModes[0])};
    1.88 +	
    1.89 +	/**
    1.90 +	Md5 Characteristics
    1.91 +	*/
    1.92 +	static const TInt32 KCryptoPluginMd5 = 0x102831D1;	
    1.93 +	static const TUid KCryptoPluginMd5Uid={KCryptoPluginMd5};
    1.94 +	static const TInt32 KMd5OperationModes[]={KHashMode, KHmacMode};
    1.95 +	static const THashCharacteristics KMd5_1 = {KHashInterface, KAlgorithmHashMd5, KCryptoPluginMd5, &KSymbian, EFalse, EFalse, 6, &KMd5Description, 100, 90, 512, 128, KMd5OperationModes, sizeof(KMd5OperationModes)/sizeof(KMd5OperationModes[0])};	
    1.96 +
    1.97 +	/**
    1.98 +	Sha1 Characteristics
    1.99 +	*/
   1.100 +	static const TInt32 KCryptoPluginSha1 = 0x102831D2;
   1.101 +	static const TUid KCryptoPluginSha1Uid={KCryptoPluginSha1};
   1.102 +	static const TInt32 KSha1OperationModes[]={KHashMode, KHmacMode};
   1.103 +	static const THashCharacteristics KSha1_1 = {KHashInterface, KAlgorithmHashSha1, KCryptoPluginSha1, &KSymbian, EFalse, EFalse, 6, &KSha1Description, 100, 90, 512, 160, KSha1OperationModes, sizeof(KSha1OperationModes)/sizeof(KSha1OperationModes[0])};	
   1.104 +	
   1.105 +	/**
   1.106 +	Md4 Characteristics
   1.107 +	*/
   1.108 +	static const TInt32 KCryptoPluginMd4 = 0x2000B340;	
   1.109 +	static const TUid KCryptoPluginMd4Uid={KCryptoPluginMd4};
   1.110 +	static const TInt32 KMd4OperationModes[]={KHashMode, KHmacMode};
   1.111 +	static const THashCharacteristics KMd4_1 = {KHashInterface, KAlgorithmHashMd4, KCryptoPluginMd4, &KSymbian, EFalse, EFalse, 6, &KMd4Description, 100, 90, 512, 128, KMd4OperationModes, sizeof(KMd4OperationModes)/sizeof(KMd4OperationModes[0])};	
   1.112 +	
   1.113 +	/**
   1.114 +	Sha224 Characteristics
   1.115 +	*/
   1.116 +	static const TInt32 KCryptoPluginSha224 = 0x2000E25C;
   1.117 +	static const TUid KCryptoPluginSha224Uid={KCryptoPluginSha224};
   1.118 +	static const TInt32 KSha224OperationModes[]={KHashMode, KHmacMode};
   1.119 +	static const THashCharacteristics KSha224_1 = {KHashInterface, KAlgorithmHashSha224, KCryptoPluginSha224, &KSymbian, EFalse, EFalse, 6, &KSha224Description, 100, 90, 512, 224, KSha224OperationModes, sizeof(KSha224OperationModes)/sizeof(KSha224OperationModes[0])};	
   1.120 +
   1.121 +	/**
   1.122 +	Sha256 Characteristics
   1.123 +	*/
   1.124 +	static const TInt32 KCryptoPluginSha256 = 0x2000E25D;
   1.125 +	static const TUid KCryptoPluginSha256Uid={KCryptoPluginSha256};
   1.126 +	static const TInt32 KSha256OperationModes[]={KHashMode, KHmacMode};
   1.127 +	static const THashCharacteristics KSha256_1 = {KHashInterface, KAlgorithmHashSha256, KCryptoPluginSha256, &KSymbian, EFalse, EFalse, 6, &KSha256Description, 100, 90, 512, 256, KSha256OperationModes, sizeof(KSha256OperationModes)/sizeof(KSha256OperationModes[0])};	
   1.128 +
   1.129 +	/**
   1.130 +	Sha384 Characteristics
   1.131 +	*/
   1.132 +	static const TInt32 KCryptoPluginSha384 = 0x2000E25E;
   1.133 +	static const TUid KCryptoPluginSha384Uid={KCryptoPluginSha384};
   1.134 +	static const TInt32 KSha384OperationModes[]={KHashMode, KHmacMode};
   1.135 +	static const THashCharacteristics KSha384_1 = {KHashInterface, KAlgorithmHashSha384, KCryptoPluginSha384, &KSymbian, EFalse, EFalse, 6, &KSha384Description, 100, 90, 1024, 384, KSha384OperationModes, sizeof(KSha384OperationModes)/sizeof(KSha384OperationModes[0])};	
   1.136 +
   1.137 +	/**
   1.138 +	Sha512 Characteristics
   1.139 +	*/
   1.140 +	static const TInt32 KCryptoPluginSha512 = 0x2000E25F;
   1.141 +	static const TUid KCryptoPluginSha512Uid={KCryptoPluginSha512};
   1.142 +	static const TInt32 KSha512OperationModes[]={KHashMode, KHmacMode};
   1.143 +	static const THashCharacteristics KSha512_1 = {KHashInterface, KAlgorithmHashSha512, KCryptoPluginSha512, &KSymbian, EFalse, EFalse, 6, &KSha512Description, 100, 90, 1024, 512, KSha512OperationModes, sizeof(KSha512OperationModes)/sizeof(KSha512OperationModes[0])};	
   1.144 +
   1.145 +	
   1.146 +	/**
   1.147 +	Random Characteristics
   1.148 +	*/
   1.149 +	static const TInt32 KCryptoPluginRandom = 0x102831D3;
   1.150 +	static const TUid KCryptoPluginRandomUid={KCryptoPluginRandom};
   1.151 +	static const TRandomCharacteristics KRandom_1 = {KRandomInterface, KAlgorithmRandom, KCryptoPluginRandom, &KSymbian, EFalse, EFalse, 6, &KRandomDescription, 100, 90, 3};	
   1.152 +
   1.153 +
   1.154 +	
   1.155 +	/**
   1.156 +	DES Characteristics
   1.157 +	*/
   1.158 +	static const TInt32 KCryptoPluginDes = 0x102831D4;
   1.159 +	static const TUid KCryptoPluginDesUid={KCryptoPluginDes};
   1.160 +	static const TInt32 KDesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
   1.161 +	static const TInt32 KDesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
   1.162 +	
   1.163 +	static const TSymmetricCipherCharacteristics KDes_1 = {KSymmetricCipherInterface, KAlgorithmCipherDes, KCryptoPluginDes, &KSymbian, EFalse, EFalse, 6, &KDesDescription, 100, 90, 
   1.164 +	64 /* max key bits */, 64 /* block bits */, KDesPaddingModes, sizeof(KDesPaddingModes)/sizeof(KDesPaddingModes[0]), KDesCryptoModes, sizeof(KDesCryptoModes)/sizeof(KDesCryptoModes[0]), 3};
   1.165 +
   1.166 +	/**
   1.167 +	3DES-EDE Characteristics
   1.168 +	*/
   1.169 +	static const TInt32 KCryptoPlugin3Des = 0x102831D5;
   1.170 +	static const TUid KCryptoPlugin3DesUid={KCryptoPlugin3Des};
   1.171 +	static const TInt32 K3DesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
   1.172 +	static const TInt32 K3DesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
   1.173 +	
   1.174 +	static const TSymmetricCipherCharacteristics K3Des_1 = {KSymmetricCipherInterface, KAlgorithmCipher3Des, KCryptoPlugin3Des, &KSymbian, EFalse, EFalse, 6, &K3DesDescription, 100, 90, 
   1.175 +	192 /* max key bits */, 64 /* block bits */, K3DesPaddingModes, sizeof(K3DesPaddingModes)/sizeof(K3DesPaddingModes[0]), K3DesCryptoModes, sizeof(K3DesCryptoModes)/sizeof(K3DesCryptoModes[0]), 3};
   1.176 +
   1.177 +	/**
   1.178 +	AES Characteristics
   1.179 +	*/
   1.180 +	static const TInt32 KCryptoPluginAes = 0x102831D6;
   1.181 +	static const TUid KCryptoPluginAesUid={KCryptoPluginAes};
   1.182 +	static const TInt32 KAesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
   1.183 +	static const TInt32 KAesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
   1.184 +	
   1.185 +	static const TSymmetricCipherCharacteristics KAes_1 = {KSymmetricCipherInterface, KAlgorithmCipherAes, KCryptoPluginAes, &KSymbian, EFalse, EFalse, 6, &KAesDescription, 100, 90, 
   1.186 +	256 /* max key bits */, 128 /* block bits */, KAesPaddingModes, sizeof(KAesPaddingModes)/sizeof(KAesPaddingModes[0]), KAesCryptoModes, sizeof(KAesCryptoModes)/sizeof(KAesCryptoModes[0]), 3};
   1.187 +
   1.188 +
   1.189 +	/**
   1.190 +	RC2 Characteristics
   1.191 +	*/
   1.192 +	static const TInt32 KCryptoPluginRc2 = 0x102831D7;
   1.193 +	static const TUid KCryptoPluginRc2Uid={KCryptoPluginRc2};
   1.194 +	static const TInt32 KRc2PaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
   1.195 +	static const TInt32 KRc2CryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
   1.196 +	
   1.197 +	static const TSymmetricCipherCharacteristics KRc2_1 = {KSymmetricCipherInterface, KAlgorithmCipherRc2, KCryptoPluginRc2, &KSymbian, EFalse, EFalse, 6, &KRC2Description, 100, 90, 
   1.198 +	1024 /* max key bits */, 64 /* block bits */, KRc2PaddingModes, sizeof(KRc2PaddingModes)/sizeof(KRc2PaddingModes[0]), KRc2CryptoModes, sizeof(KRc2CryptoModes)/sizeof(KRc2CryptoModes[0]), 3};
   1.199 +
   1.200 +
   1.201 +	/**
   1.202 +	ARC4 Characteristics
   1.203 +	*/
   1.204 +	static const TInt32 KCryptoPluginArc4 = 0x102831D8;
   1.205 +	static const TUid KCryptoPluginArc4Uid={KCryptoPluginArc4};
   1.206 +	static const TInt32 KArc4PaddingModes[]={KPaddingModeNone};
   1.207 +	static const TInt32 KArc4CryptoModes[]={KOperationModeNone};
   1.208 +	
   1.209 +	static const TSymmetricCipherCharacteristics KArc4_1 = {KSymmetricCipherInterface, KAlgorithmCipherArc4, KCryptoPluginArc4, &KSymbian, EFalse, EFalse, 6, &KARC4Description, 100, 90, 
   1.210 +	2048 /* max key bits */, 8 /* block bits */, KArc4PaddingModes, sizeof(KArc4PaddingModes)/sizeof(KArc4PaddingModes[0]), KArc4CryptoModes, sizeof(KArc4CryptoModes)/sizeof(KArc4CryptoModes[0]), 3};
   1.211 +
   1.212 +
   1.213 +	/**
   1.214 +	RSA Cipher Characteristics
   1.215 +	*/
   1.216 +	static const TInt32 KCryptoPluginRsaCipher = 0x102831D9;
   1.217 +	static const TUid KCryptoPluginRsaCipherUid={KCryptoPluginRsaCipher};
   1.218 +	static const TInt32 KRSACipherPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Encryption};
   1.219 +	
   1.220 +	static const TAsymmetricCipherCharacteristics KRSA_1 = {KAsymmetricCipherInterface, KAlgorithmCipherRsa, KCryptoPluginRsaCipher, &KSymbian, EFalse, EFalse, 6, &KRsaCipherDescription, 100, 90, 
   1.221 +	256, KRSACipherPaddingModes, sizeof(KRSACipherPaddingModes)/sizeof(KRSACipherPaddingModes[0]), 3};
   1.222 +
   1.223 +
   1.224 +	/**
   1.225 +	RSA Signer Characteristics
   1.226 +	*/
   1.227 +	static const TInt32 KCryptoPluginRsaSigner = 0x102831DA;
   1.228 +	static const TUid KCryptoPluginRsaSignerUid={KCryptoPluginRsaSigner};
   1.229 +	static const TInt32 KRSASignerPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature};
   1.230 +	
   1.231 +	static const TAsymmetricSignatureCharacteristics KRSASigner_1 = {KSignerInterface, KAlgorithmSignerRsa, KCryptoPluginRsaSigner, &KSymbian, EFalse, EFalse, 6, &KRsaSignerDescription, 100, 90, 
   1.232 +	256, KRSASignerPaddingModes, sizeof(KRSASignerPaddingModes)/sizeof(KRSASignerPaddingModes[0]), 3};
   1.233 +
   1.234 +	/**
   1.235 +	DSA Signer Characteristics
   1.236 +	*/
   1.237 +	static const TInt32 KCryptoPluginDsaSigner = 0x102831DB;
   1.238 +	static const TUid KCryptoPluginDsaSignerUid={KCryptoPluginDsaSigner};
   1.239 +	static const TInt32 KDSASignerPaddingModes[]={KPaddingModeNone};
   1.240 +	
   1.241 +	static const TAsymmetricSignatureCharacteristics KDSASigner_1 = {KSignerInterface, KAlgorithmSignerDsa, KCryptoPluginDsaSigner, &KSymbian, EFalse, EFalse, 6, &KDsaSignerDescription, 100, 90, 
   1.242 +	256, KDSASignerPaddingModes, sizeof(KDSASignerPaddingModes)/sizeof(KDSASignerPaddingModes[0]), 3};
   1.243 +
   1.244 +
   1.245 +	/**
   1.246 +	RSA verifier Characteristics
   1.247 +	*/
   1.248 +	static const TInt32 KCryptoPluginRsaVerifier = 0x102831DC;
   1.249 +	static const TUid KCryptoPluginRsaVerifierUid={KCryptoPluginRsaVerifier};
   1.250 +	static const TInt32 KRSAVerifierPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature};
   1.251 +	
   1.252 +	static const TAsymmetricSignatureCharacteristics KRSAVerifier_1 = {KVerifierInterface, KAlgorithmVerifierRsa, KCryptoPluginRsaVerifier, &KSymbian, EFalse, EFalse, 6, &KRsaVerifierDescription, 100, 90, 
   1.253 +	256, KRSAVerifierPaddingModes, sizeof(KRSAVerifierPaddingModes)/sizeof(KRSAVerifierPaddingModes[0]), 3};
   1.254 +
   1.255 +	/**
   1.256 +	DSA verifier Characteristics
   1.257 +	*/
   1.258 +	static const TInt32 KCryptoPluginDsaVerifier = 0x102831DD;
   1.259 +	static const TUid KCryptoPluginDsaVerifierUid={KCryptoPluginDsaVerifier};
   1.260 +	static const TInt32 KDSAVerifierPaddingModes[]={KPaddingModeNone};
   1.261 +	
   1.262 +	static const TAsymmetricSignatureCharacteristics KDSAVerifier_1 = {KVerifierInterface, KAlgorithmVerifierDsa, KCryptoPluginDsaVerifier, &KSymbian, EFalse, EFalse, 6, &KDsaVerifierDescription, 100, 90, 
   1.263 +	256, KDSAVerifierPaddingModes, sizeof(KDSAVerifierPaddingModes)/sizeof(KDSAVerifierPaddingModes[0]), 3};
   1.264 +
   1.265 +	/**
   1.266 +	DH Key Agreement Characteristics
   1.267 +	*/
   1.268 +	static const TInt32 KCryptoPluginDhKeyAgreement = 0x102831DE;	// used to identify the CKeyAgreementImpl derived class within the plugin to use
   1.269 +	static const TUid KCryptoPluginDhKeyAgreementUid={KCryptoPluginDhKeyAgreement};	// returned by the CKeyAgreementImpl derived class
   1.270 +	static const TKeyAgreementCharacteristics KDH_1 = {KKeyAgreementInterface, KAlgorithmKeyAgreementDH, KCryptoPluginDhKeyAgreement, &KSymbian, EFalse, EFalse, 6, &KDHDescription, 100, 90};
   1.271 +
   1.272 +	/**
   1.273 +	DH Key Pair Generator Characteristics
   1.274 +	*/
   1.275 +	static const TInt32 KCryptoPluginDhKeyPairGen = 0x102831DF;
   1.276 +	static const TUid KCryptoPluginDhKeyPairGenUid={KCryptoPluginDhKeyPairGen};
   1.277 +	static const TAsymmetricKeypairGeneratorCharacteristics KDHKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmDHKeyPairGenerator, KCryptoPluginDhKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KDhKeyPairDescription, 100, 90, 1024};
   1.278 +
   1.279 +	/**
   1.280 +	RSA Key Pair Generator Characteristics
   1.281 +	*/
   1.282 +	static const TInt32 KCryptoPluginRsaKeyPairGen = 0x102831E0;
   1.283 +	static const TUid KCryptoPluginRsaKeyPairGenUid={KCryptoPluginRsaKeyPairGen};
   1.284 +	static const TAsymmetricKeypairGeneratorCharacteristics KRSAKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmRSAKeyPairGenerator, KCryptoPluginRsaKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KRsaKeyPairDescription, 100, 90, 1024};
   1.285 +
   1.286 +	/**
   1.287 +	DSA Key Pair Generator Characteristics
   1.288 +	*/
   1.289 +	static const TInt32 KCryptoPluginDsaKeyPairGen = 0x102831E1;
   1.290 +	static const TUid KCryptoPluginDsaKeyPairGenUid={KCryptoPluginDsaKeyPairGen};
   1.291 +	static const TAsymmetricKeypairGeneratorCharacteristics KDSAKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmDSAKeyPairGenerator, KCryptoPluginDsaKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KDsaKeyPairDescription, 100, 90, 1024};
   1.292 +
   1.293 +
   1.294 +/******************************MAC INTERFACE PLUG-INS' CHARACTERISTICS***************************/	
   1.295 +#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT	
   1.296 +	_ROMLIT16(KHmacMd2Description, "HmacMd2");
   1.297 +	_ROMLIT16(KHmacMd4Description, "HmacMd4");
   1.298 +	_ROMLIT16(KHmacMd5Description, "HmacMd5");
   1.299 +	_ROMLIT16(KHmacSha1Description, "HmacSha1");
   1.300 +	_ROMLIT16(KHmacSha224Description, "HmacSha224");
   1.301 +	_ROMLIT16(KHmacSha256Description, "HmacSha256");
   1.302 +	_ROMLIT16(KHmacSha384Description, "HmacSha384");
   1.303 +	_ROMLIT16(KHmacSha512Description, "HmacSha512");
   1.304 +	_ROMLIT16(KMacAesXcbcMac96Description, "AesXcbcMac96");
   1.305 +	_ROMLIT16(KMacAesXcbcPrf128Description, "AesXcbcPrf128");
   1.306 +	/**
   1.307 +	 * AES-XCBC-MAC-96 MAC Plugin Characteristics
   1.308 +	 */		            
   1.309 +	static const TInt32 KCryptoPluginMacAesXcbcMac96 = 0x2001EDA8;	
   1.310 +	static const TUid KCryptoPluginMacAesXcbcMac96Uid= {KCryptoPluginMacAesXcbcMac96};
   1.311 +	static const TMacCharacteristics KMac_1 = {
   1.312 +                                               KMacInterface, 
   1.313 +                                               KAlgorithmCipherAesXcbcMac96, 
   1.314 +			                                   KCryptoPluginMacAesXcbcMac96, 
   1.315 +			                                   &KSymbian, 
   1.316 +			                                   EFalse, EFalse, 6, 
   1.317 +			                                   &KMacAesXcbcMac96Description, 
   1.318 +			                                   100, 90, KSymmetricCipherMode,
   1.319 +			                                   NULL,&KAes_1
   1.320 +											   };
   1.321 +	/**
   1.322 +	 * AES-XCBC-PRF-128 MAC Plugin Characteristics
   1.323 +	 */		
   1.324 +	static const TInt32 KCryptoPluginMacAesXcbcPrf128  = 0x2001EDA9;	
   1.325 +	static const TUid KCryptoPluginMacAesXcbcPrf128Uid = {KCryptoPluginMacAesXcbcPrf128};
   1.326 +	static const TMacCharacteristics KMac_2 = {
   1.327 +                                               KMacInterface, 
   1.328 +                                               KAlgorithmCipherAesXcbcPrf128, 
   1.329 +			                                   KCryptoPluginMacAesXcbcPrf128, 
   1.330 +			                                   &KSymbian, 
   1.331 +			                                   EFalse, EFalse, 6, 
   1.332 +			                                   &KMacAesXcbcPrf128Description, 
   1.333 +			                                   100, 90, KSymmetricCipherMode,
   1.334 +			                                   NULL,&KAes_1
   1.335 +											   };
   1.336 +	/**
   1.337 +	 * HASH-MD2 MAC Plugin Characteristics
   1.338 +	 */		
   1.339 +	static const TInt32 KCryptoPluginMacHashMd2  = 0x2001EDA0;	
   1.340 +	static const TUid KCryptoPluginMacHashMd2Uid = {KCryptoPluginMacHashMd2};
   1.341 +	static const TMacCharacteristics KMac_3 = {
   1.342 +                                               KMacInterface, 
   1.343 +										       KAlgorithmHashMd2, 
   1.344 +				                               KCryptoPluginMacHashMd2, 
   1.345 +				                               &KSymbian, 
   1.346 +				                               EFalse, EFalse, 6, 
   1.347 +				                               &KHmacMd2Description, 
   1.348 +				                               100, 90, KHmacMode,
   1.349 +				                               &KMd2_1, NULL 
   1.350 +						                       };
   1.351 +	/**
   1.352 +	 * HASH-MD4 MAC Plugin Characteristics
   1.353 +	 */		
   1.354 +	static const TInt32 KCryptoPluginMacHashMd4  = 0x2001EDA1;	
   1.355 +	static const TUid KCryptoPluginMacHashMd4Uid = {KCryptoPluginMacHashMd4};
   1.356 +	static const TMacCharacteristics KMac_4 = {
   1.357 +                                               KMacInterface, 
   1.358 +										       KAlgorithmHashMd4, 
   1.359 +										       KCryptoPluginMacHashMd4, 
   1.360 +				                               &KSymbian, 
   1.361 +				                               EFalse, EFalse, 6, 
   1.362 +				                               &KHmacMd4Description, 
   1.363 +				                               100, 90, KHmacMode,
   1.364 +				                               &KMd4_1, NULL 
   1.365 +						                       };
   1.366 +	/**
   1.367 +	 * HASH-MD5 MAC Plugin Characteristics
   1.368 +	 */		
   1.369 +	static const TInt32 KCryptoPluginMacHashMd5  = 0x2001EDA2;	
   1.370 +	static const TUid KCryptoPluginMacHashMd5Uid = {KCryptoPluginMacHashMd5};
   1.371 +	static const TMacCharacteristics KMac_5 = {
   1.372 +                                               KMacInterface, 
   1.373 +										       KAlgorithmHashMd5, 
   1.374 +										       KCryptoPluginMacHashMd5, 
   1.375 +				                               &KSymbian, 
   1.376 +				                               EFalse, EFalse, 6, 
   1.377 +				                               &KHmacMd5Description, 
   1.378 +				                               100, 90, KHmacMode,
   1.379 +				                               &KMd5_1, NULL 
   1.380 +						                       };
   1.381 +	/**
   1.382 +	 * HASH-SHA1 MAC Plugin Characteristics
   1.383 +	 */		
   1.384 +	static const TInt32 KCryptoPluginMacHashSha1  = 0x2001EDA3;	
   1.385 +	static const TUid KCryptoPluginMacHashSha1Uid = {KCryptoPluginMacHashSha1};
   1.386 +	static const TMacCharacteristics KMac_6 = {
   1.387 +                                               KMacInterface, 
   1.388 +										       KAlgorithmHashSha1, 
   1.389 +										       KCryptoPluginMacHashSha1, 
   1.390 +				                               &KSymbian, 
   1.391 +				                               EFalse, EFalse, 6, 
   1.392 +				                               &KHmacSha1Description, 
   1.393 +				                               100, 90, KHmacMode,
   1.394 +				                               &KSha1_1, NULL 
   1.395 +						                       };
   1.396 +	/**
   1.397 +	 * HASH-SHA224 MAC Plugin Characteristics
   1.398 +	 */		
   1.399 +	static const TInt32 KCryptoPluginMacHashSha224  = 0x2001EDA4;	
   1.400 +	static const TUid KCryptoPluginMacHashSha224Uid = {KCryptoPluginMacHashSha224};
   1.401 +	static const TMacCharacteristics KMac_7 = {
   1.402 +                                               KMacInterface, 
   1.403 +										       KAlgorithmHashSha224, 
   1.404 +										       KCryptoPluginMacHashSha224, 
   1.405 +				                               &KSymbian, 
   1.406 +				                               EFalse, EFalse, 6, 
   1.407 +				                               &KHmacSha224Description, 
   1.408 +				                               100, 90, KHmacMode,
   1.409 +				                               &KSha224_1, NULL 
   1.410 +						                       };
   1.411 +	/**
   1.412 +	 * HASH-SHA256 MAC Plugin Characteristics
   1.413 +	 */		
   1.414 +	static const TInt32 KCryptoPluginMacHashSha256  = 0x2001EDA5;	
   1.415 +	static const TUid KCryptoPluginMacHashSha256Uid = {KCryptoPluginMacHashSha256};
   1.416 +	static const TMacCharacteristics KMac_8 = {
   1.417 +                                               KMacInterface, 
   1.418 +										       KAlgorithmHashSha256, 
   1.419 +										       KCryptoPluginMacHashSha256, 
   1.420 +				                               &KSymbian, 
   1.421 +				                               EFalse, EFalse, 6, 
   1.422 +				                               &KHmacSha256Description, 
   1.423 +				                               100, 90, KHmacMode,
   1.424 +				                               &KSha256_1, NULL 
   1.425 +						                       };
   1.426 +	/**
   1.427 +	 * HASH-SHA384 MAC Plugin Characteristics
   1.428 +	 */		
   1.429 +	static const TInt32 KCryptoPluginMacHashSha384  = 0x2001EDA6;	
   1.430 +	static const TUid KCryptoPluginMacHashSha384Uid = {KCryptoPluginMacHashSha384};
   1.431 +	static const TMacCharacteristics KMac_9 = {
   1.432 +                                               KMacInterface, 
   1.433 +										       KAlgorithmHashSha384, 
   1.434 +										       KCryptoPluginMacHashSha384, 
   1.435 +				                               &KSymbian, 
   1.436 +				                               EFalse, EFalse, 6, 
   1.437 +				                               &KHmacSha384Description, 
   1.438 +				                               100, 90, KHmacMode,
   1.439 +				                               &KSha384_1, NULL 
   1.440 +						                       };
   1.441 +	/**
   1.442 +	 * HASH-SHA512 MAC Plugin Characteristics
   1.443 +	 */		
   1.444 +	static const TInt32 KCryptoPluginMacHashSha512  = 0x2001EDA7;	
   1.445 +	static const TUid KCryptoPluginMacHashSha512Uid = {KCryptoPluginMacHashSha512};
   1.446 +	static const TMacCharacteristics KMac_10 = {
   1.447 +                                               KMacInterface, 
   1.448 +										       KAlgorithmHashSha512, 
   1.449 +										       KCryptoPluginMacHashSha512, 
   1.450 +				                               &KSymbian, 
   1.451 +				                               EFalse, EFalse, 6, 
   1.452 +				                               &KHmacSha512Description, 
   1.453 +				                               100, 90, KHmacMode,
   1.454 +				                               &KSha512_1, NULL 
   1.455 +						                       };
   1.456 +	/**
   1.457 +	 * Mac implementation characteristic table
   1.458 +	 */
   1.459 +	static const TMacCharacteristics* const KMacCharacteristics[] = {
   1.460 +												&KMac_1, &KMac_2, &KMac_3, 
   1.461 +												&KMac_4, &KMac_5, &KMac_6,
   1.462 +												&KMac_7, &KMac_8, &KMac_9,
   1.463 +												&KMac_10
   1.464 +												};	
   1.465 +	
   1.466 +#endif
   1.467 +/***********************************************************************************************/
   1.468 +
   1.469 +	/**
   1.470 +	For each crypto algorithm type implemented in this plugin list the characteristics
   1.471 +	*/
   1.472 +	
   1.473 +	/**
   1.474 +	Hash implementation characteristic table
   1.475 +	*/
   1.476 +	static const THashCharacteristics* const KHashCharacteristics[] = 
   1.477 +		{
   1.478 +		&KMd2_1, &KMd5_1, &KSha1_1, &KMd4_1, &KSha224_1, &KSha256_1, &KSha384_1, &KSha512_1
   1.479 +		};
   1.480 +
   1.481 +	/**
   1.482 +	Random implementation characteristic table
   1.483 +	*/
   1.484 +	
   1.485 +	static const TRandomCharacteristics* const KRandomCharacteristics[]=
   1.486 +		{
   1.487 +		&KRandom_1	
   1.488 +		};
   1.489 +		
   1.490 +	/**
   1.491 +	Symmetric Cipher implementation characteristic table
   1.492 +	*/
   1.493 +	static const TSymmetricCipherCharacteristics* const KSymmetricCipherCharacteristics[]=
   1.494 +		{
   1.495 +		&KDes_1, &K3Des_1, &KAes_1, &KRc2_1, &KArc4_1
   1.496 +		};
   1.497 +
   1.498 +
   1.499 +	/**
   1.500 +	Asymmetric Cipher implementation characteristic table
   1.501 +	*/
   1.502 +	static const TAsymmetricCipherCharacteristics* const KAsymmetricCipherCharacteristics[]=
   1.503 +		{
   1.504 +		&KRSA_1	
   1.505 +		};
   1.506 +
   1.507 +	/**
   1.508 +	Signer implementation characteristic table
   1.509 +	*/
   1.510 +	static const TAsymmetricSignatureCharacteristics* const KSignerCharacteristics[]=
   1.511 +		{
   1.512 +		&KRSASigner_1, &KDSASigner_1
   1.513 +		};
   1.514 +
   1.515 +
   1.516 +	/**
   1.517 +	Verifier implementation characteristic table
   1.518 +	*/
   1.519 +	static const TAsymmetricSignatureCharacteristics* const KVerifierCharacteristics[]=
   1.520 +		{
   1.521 +		&KRSAVerifier_1, &KDSAVerifier_1
   1.522 +		};
   1.523 +
   1.524 +	/**
   1.525 +	Key Agreement implementation characteristic table
   1.526 +	*/
   1.527 +	static const TKeyAgreementCharacteristics* const KKeyAgreementCharacteristics[]=
   1.528 +		{
   1.529 +		&KDH_1
   1.530 +		};
   1.531 +
   1.532 +	/**
   1.533 +	Key pair generator implementation characteristic table
   1.534 +	*/
   1.535 +	static const TAsymmetricKeypairGeneratorCharacteristics* const KKeyPairGeneratorCharacteristics[]=
   1.536 +		{
   1.537 +		&KDHKeyPairGenerator_1, &KRSAKeyPairGenerator_1, &KDSAKeyPairGenerator_1
   1.538 +		};
   1.539 +	}
   1.540 +
   1.541 +#endif //__CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__