os/security/cryptoplugins/cryptospiplugins/source/softwarecrypto/pluginconfig.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
/**
sl@0
    20
 @file
sl@0
    21
 @@internalComponent
sl@0
    22
 @released
sl@0
    23
*/
sl@0
    24
sl@0
    25
#ifndef __CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__
sl@0
    26
#define __CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__
sl@0
    27
sl@0
    28
#include <cryptospi/cryptoparams.h>
sl@0
    29
#include <e32cmn.h>
sl@0
    30
#include <cryptospi/romlit.h>
sl@0
    31
#include <cryptospi/cryptospidef.h>
sl@0
    32
sl@0
    33
namespace SoftwareCrypto
sl@0
    34
	{
sl@0
    35
	using namespace CryptoSpi;
sl@0
    36
sl@0
    37
	/**
sl@0
    38
	Creator Name
sl@0
    39
	*/
sl@0
    40
	_ROMLIT16(KSymbian, "Symbian");
sl@0
    41
	
sl@0
    42
	/**
sl@0
    43
	implementation Name
sl@0
    44
	*/
sl@0
    45
	_ROMLIT16(KMd2Description, "Md2");
sl@0
    46
	_ROMLIT16(KMd4Description, "Md4");
sl@0
    47
	_ROMLIT16(KMd5Description, "Md5");
sl@0
    48
	_ROMLIT16(KSha1Description, "Sha1");
sl@0
    49
	_ROMLIT16(KSha224Description, "Sha224");
sl@0
    50
	_ROMLIT16(KSha256Description, "Sha256");
sl@0
    51
	_ROMLIT16(KSha384Description, "Sha384");
sl@0
    52
	_ROMLIT16(KSha512Description, "Sha512");
sl@0
    53
sl@0
    54
	_ROMLIT16(KRandomDescription, "Random");
sl@0
    55
	_ROMLIT16(KDesDescription, "Des");
sl@0
    56
	_ROMLIT16(K3DesDescription, "3Des");
sl@0
    57
	_ROMLIT16(KAesDescription, "Aes");
sl@0
    58
	_ROMLIT16(KRC2Description, "RC2");
sl@0
    59
	_ROMLIT16(KARC4Description, "ARC4");
sl@0
    60
	_ROMLIT16(KRsaCipherDescription, "Rsa");
sl@0
    61
	_ROMLIT16(KRsaSignerDescription, "RsaSigner");
sl@0
    62
	_ROMLIT16(KDsaSignerDescription, "DsaSigner");
sl@0
    63
	_ROMLIT16(KRsaVerifierDescription, "RsaVerifier");
sl@0
    64
	_ROMLIT16(KDsaVerifierDescription, "DsaVerifier");
sl@0
    65
	_ROMLIT16(KDHDescription, "DH");
sl@0
    66
	_ROMLIT16(KSymmetricKeyGeneratorDescription, "Symmetric Key Generator");
sl@0
    67
	_ROMLIT16(KRsaKeyPairDescription, "Rsa Key Pair Generator");
sl@0
    68
	_ROMLIT16(KDsaKeyPairDescription, "Dsa Key Pair Generator");
sl@0
    69
	_ROMLIT16(KDhKeyPairDescription, "DH Key Pair Generator");
sl@0
    70
	/**
sl@0
    71
	For each crypto algorithm implemented in this plugin define
sl@0
    72
		a plugin-wide unique id to identify it
sl@0
    73
		a UID that contains the above id
sl@0
    74
		a table of characteristics
sl@0
    75
	*/	
sl@0
    76
sl@0
    77
	
sl@0
    78
	/**
sl@0
    79
	Md2 Characteristics
sl@0
    80
	*/
sl@0
    81
	static const TInt32 KCryptoPluginMd2 = 0x102831D0;	
sl@0
    82
	static const TUid KCryptoPluginMd2Uid={KCryptoPluginMd2};
sl@0
    83
	static const TInt32 KMd2OperationModes[]={KHashMode, KHmacMode};
sl@0
    84
	static const THashCharacteristics KMd2_1 = {KHashInterface, KAlgorithmHashMd2, KCryptoPluginMd2, &KSymbian, EFalse, EFalse, 6, &KMd2Description, 100, 90, 128, 128, KMd2OperationModes, sizeof(KMd2OperationModes)/sizeof(KMd2OperationModes[0])};
sl@0
    85
	
sl@0
    86
	/**
sl@0
    87
	Md5 Characteristics
sl@0
    88
	*/
sl@0
    89
	static const TInt32 KCryptoPluginMd5 = 0x102831D1;	
sl@0
    90
	static const TUid KCryptoPluginMd5Uid={KCryptoPluginMd5};
sl@0
    91
	static const TInt32 KMd5OperationModes[]={KHashMode, KHmacMode};
sl@0
    92
	static const THashCharacteristics KMd5_1 = {KHashInterface, KAlgorithmHashMd5, KCryptoPluginMd5, &KSymbian, EFalse, EFalse, 6, &KMd5Description, 100, 90, 512, 128, KMd5OperationModes, sizeof(KMd5OperationModes)/sizeof(KMd5OperationModes[0])};	
sl@0
    93
sl@0
    94
	/**
sl@0
    95
	Sha1 Characteristics
sl@0
    96
	*/
sl@0
    97
	static const TInt32 KCryptoPluginSha1 = 0x102831D2;
sl@0
    98
	static const TUid KCryptoPluginSha1Uid={KCryptoPluginSha1};
sl@0
    99
	static const TInt32 KSha1OperationModes[]={KHashMode, KHmacMode};
sl@0
   100
	static const THashCharacteristics KSha1_1 = {KHashInterface, KAlgorithmHashSha1, KCryptoPluginSha1, &KSymbian, EFalse, EFalse, 6, &KSha1Description, 100, 90, 512, 160, KSha1OperationModes, sizeof(KSha1OperationModes)/sizeof(KSha1OperationModes[0])};	
sl@0
   101
	
sl@0
   102
	/**
sl@0
   103
	Md4 Characteristics
sl@0
   104
	*/
sl@0
   105
	static const TInt32 KCryptoPluginMd4 = 0x2000B340;	
sl@0
   106
	static const TUid KCryptoPluginMd4Uid={KCryptoPluginMd4};
sl@0
   107
	static const TInt32 KMd4OperationModes[]={KHashMode, KHmacMode};
sl@0
   108
	static const THashCharacteristics KMd4_1 = {KHashInterface, KAlgorithmHashMd4, KCryptoPluginMd4, &KSymbian, EFalse, EFalse, 6, &KMd4Description, 100, 90, 512, 128, KMd4OperationModes, sizeof(KMd4OperationModes)/sizeof(KMd4OperationModes[0])};	
sl@0
   109
	
sl@0
   110
	/**
sl@0
   111
	Sha224 Characteristics
sl@0
   112
	*/
sl@0
   113
	static const TInt32 KCryptoPluginSha224 = 0x2000E25C;
sl@0
   114
	static const TUid KCryptoPluginSha224Uid={KCryptoPluginSha224};
sl@0
   115
	static const TInt32 KSha224OperationModes[]={KHashMode, KHmacMode};
sl@0
   116
	static const THashCharacteristics KSha224_1 = {KHashInterface, KAlgorithmHashSha224, KCryptoPluginSha224, &KSymbian, EFalse, EFalse, 6, &KSha224Description, 100, 90, 512, 224, KSha224OperationModes, sizeof(KSha224OperationModes)/sizeof(KSha224OperationModes[0])};	
sl@0
   117
sl@0
   118
	/**
sl@0
   119
	Sha256 Characteristics
sl@0
   120
	*/
sl@0
   121
	static const TInt32 KCryptoPluginSha256 = 0x2000E25D;
sl@0
   122
	static const TUid KCryptoPluginSha256Uid={KCryptoPluginSha256};
sl@0
   123
	static const TInt32 KSha256OperationModes[]={KHashMode, KHmacMode};
sl@0
   124
	static const THashCharacteristics KSha256_1 = {KHashInterface, KAlgorithmHashSha256, KCryptoPluginSha256, &KSymbian, EFalse, EFalse, 6, &KSha256Description, 100, 90, 512, 256, KSha256OperationModes, sizeof(KSha256OperationModes)/sizeof(KSha256OperationModes[0])};	
sl@0
   125
sl@0
   126
	/**
sl@0
   127
	Sha384 Characteristics
sl@0
   128
	*/
sl@0
   129
	static const TInt32 KCryptoPluginSha384 = 0x2000E25E;
sl@0
   130
	static const TUid KCryptoPluginSha384Uid={KCryptoPluginSha384};
sl@0
   131
	static const TInt32 KSha384OperationModes[]={KHashMode, KHmacMode};
sl@0
   132
	static const THashCharacteristics KSha384_1 = {KHashInterface, KAlgorithmHashSha384, KCryptoPluginSha384, &KSymbian, EFalse, EFalse, 6, &KSha384Description, 100, 90, 1024, 384, KSha384OperationModes, sizeof(KSha384OperationModes)/sizeof(KSha384OperationModes[0])};	
sl@0
   133
sl@0
   134
	/**
sl@0
   135
	Sha512 Characteristics
sl@0
   136
	*/
sl@0
   137
	static const TInt32 KCryptoPluginSha512 = 0x2000E25F;
sl@0
   138
	static const TUid KCryptoPluginSha512Uid={KCryptoPluginSha512};
sl@0
   139
	static const TInt32 KSha512OperationModes[]={KHashMode, KHmacMode};
sl@0
   140
	static const THashCharacteristics KSha512_1 = {KHashInterface, KAlgorithmHashSha512, KCryptoPluginSha512, &KSymbian, EFalse, EFalse, 6, &KSha512Description, 100, 90, 1024, 512, KSha512OperationModes, sizeof(KSha512OperationModes)/sizeof(KSha512OperationModes[0])};	
sl@0
   141
sl@0
   142
	
sl@0
   143
	/**
sl@0
   144
	Random Characteristics
sl@0
   145
	*/
sl@0
   146
	static const TInt32 KCryptoPluginRandom = 0x102831D3;
sl@0
   147
	static const TUid KCryptoPluginRandomUid={KCryptoPluginRandom};
sl@0
   148
	static const TRandomCharacteristics KRandom_1 = {KRandomInterface, KAlgorithmRandom, KCryptoPluginRandom, &KSymbian, EFalse, EFalse, 6, &KRandomDescription, 100, 90, 3};	
sl@0
   149
sl@0
   150
sl@0
   151
	
sl@0
   152
	/**
sl@0
   153
	DES Characteristics
sl@0
   154
	*/
sl@0
   155
	static const TInt32 KCryptoPluginDes = 0x102831D4;
sl@0
   156
	static const TUid KCryptoPluginDesUid={KCryptoPluginDes};
sl@0
   157
	static const TInt32 KDesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
sl@0
   158
	static const TInt32 KDesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
sl@0
   159
	
sl@0
   160
	static const TSymmetricCipherCharacteristics KDes_1 = {KSymmetricCipherInterface, KAlgorithmCipherDes, KCryptoPluginDes, &KSymbian, EFalse, EFalse, 6, &KDesDescription, 100, 90, 
sl@0
   161
	64 /* max key bits */, 64 /* block bits */, KDesPaddingModes, sizeof(KDesPaddingModes)/sizeof(KDesPaddingModes[0]), KDesCryptoModes, sizeof(KDesCryptoModes)/sizeof(KDesCryptoModes[0]), 3};
sl@0
   162
sl@0
   163
	/**
sl@0
   164
	3DES-EDE Characteristics
sl@0
   165
	*/
sl@0
   166
	static const TInt32 KCryptoPlugin3Des = 0x102831D5;
sl@0
   167
	static const TUid KCryptoPlugin3DesUid={KCryptoPlugin3Des};
sl@0
   168
	static const TInt32 K3DesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
sl@0
   169
	static const TInt32 K3DesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
sl@0
   170
	
sl@0
   171
	static const TSymmetricCipherCharacteristics K3Des_1 = {KSymmetricCipherInterface, KAlgorithmCipher3Des, KCryptoPlugin3Des, &KSymbian, EFalse, EFalse, 6, &K3DesDescription, 100, 90, 
sl@0
   172
	192 /* max key bits */, 64 /* block bits */, K3DesPaddingModes, sizeof(K3DesPaddingModes)/sizeof(K3DesPaddingModes[0]), K3DesCryptoModes, sizeof(K3DesCryptoModes)/sizeof(K3DesCryptoModes[0]), 3};
sl@0
   173
sl@0
   174
	/**
sl@0
   175
	AES Characteristics
sl@0
   176
	*/
sl@0
   177
	static const TInt32 KCryptoPluginAes = 0x102831D6;
sl@0
   178
	static const TUid KCryptoPluginAesUid={KCryptoPluginAes};
sl@0
   179
	static const TInt32 KAesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
sl@0
   180
	static const TInt32 KAesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
sl@0
   181
	
sl@0
   182
	static const TSymmetricCipherCharacteristics KAes_1 = {KSymmetricCipherInterface, KAlgorithmCipherAes, KCryptoPluginAes, &KSymbian, EFalse, EFalse, 6, &KAesDescription, 100, 90, 
sl@0
   183
	256 /* max key bits */, 128 /* block bits */, KAesPaddingModes, sizeof(KAesPaddingModes)/sizeof(KAesPaddingModes[0]), KAesCryptoModes, sizeof(KAesCryptoModes)/sizeof(KAesCryptoModes[0]), 3};
sl@0
   184
sl@0
   185
sl@0
   186
	/**
sl@0
   187
	RC2 Characteristics
sl@0
   188
	*/
sl@0
   189
	static const TInt32 KCryptoPluginRc2 = 0x102831D7;
sl@0
   190
	static const TUid KCryptoPluginRc2Uid={KCryptoPluginRc2};
sl@0
   191
	static const TInt32 KRc2PaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
sl@0
   192
	static const TInt32 KRc2CryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
sl@0
   193
	
sl@0
   194
	static const TSymmetricCipherCharacteristics KRc2_1 = {KSymmetricCipherInterface, KAlgorithmCipherRc2, KCryptoPluginRc2, &KSymbian, EFalse, EFalse, 6, &KRC2Description, 100, 90, 
sl@0
   195
	1024 /* max key bits */, 64 /* block bits */, KRc2PaddingModes, sizeof(KRc2PaddingModes)/sizeof(KRc2PaddingModes[0]), KRc2CryptoModes, sizeof(KRc2CryptoModes)/sizeof(KRc2CryptoModes[0]), 3};
sl@0
   196
sl@0
   197
sl@0
   198
	/**
sl@0
   199
	ARC4 Characteristics
sl@0
   200
	*/
sl@0
   201
	static const TInt32 KCryptoPluginArc4 = 0x102831D8;
sl@0
   202
	static const TUid KCryptoPluginArc4Uid={KCryptoPluginArc4};
sl@0
   203
	static const TInt32 KArc4PaddingModes[]={KPaddingModeNone};
sl@0
   204
	static const TInt32 KArc4CryptoModes[]={KOperationModeNone};
sl@0
   205
	
sl@0
   206
	static const TSymmetricCipherCharacteristics KArc4_1 = {KSymmetricCipherInterface, KAlgorithmCipherArc4, KCryptoPluginArc4, &KSymbian, EFalse, EFalse, 6, &KARC4Description, 100, 90, 
sl@0
   207
	2048 /* max key bits */, 8 /* block bits */, KArc4PaddingModes, sizeof(KArc4PaddingModes)/sizeof(KArc4PaddingModes[0]), KArc4CryptoModes, sizeof(KArc4CryptoModes)/sizeof(KArc4CryptoModes[0]), 3};
sl@0
   208
sl@0
   209
sl@0
   210
	/**
sl@0
   211
	RSA Cipher Characteristics
sl@0
   212
	*/
sl@0
   213
	static const TInt32 KCryptoPluginRsaCipher = 0x102831D9;
sl@0
   214
	static const TUid KCryptoPluginRsaCipherUid={KCryptoPluginRsaCipher};
sl@0
   215
	static const TInt32 KRSACipherPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Encryption};
sl@0
   216
	
sl@0
   217
	static const TAsymmetricCipherCharacteristics KRSA_1 = {KAsymmetricCipherInterface, KAlgorithmCipherRsa, KCryptoPluginRsaCipher, &KSymbian, EFalse, EFalse, 6, &KRsaCipherDescription, 100, 90, 
sl@0
   218
	256, KRSACipherPaddingModes, sizeof(KRSACipherPaddingModes)/sizeof(KRSACipherPaddingModes[0]), 3};
sl@0
   219
sl@0
   220
sl@0
   221
	/**
sl@0
   222
	RSA Signer Characteristics
sl@0
   223
	*/
sl@0
   224
	static const TInt32 KCryptoPluginRsaSigner = 0x102831DA;
sl@0
   225
	static const TUid KCryptoPluginRsaSignerUid={KCryptoPluginRsaSigner};
sl@0
   226
	static const TInt32 KRSASignerPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature};
sl@0
   227
	
sl@0
   228
	static const TAsymmetricSignatureCharacteristics KRSASigner_1 = {KSignerInterface, KAlgorithmSignerRsa, KCryptoPluginRsaSigner, &KSymbian, EFalse, EFalse, 6, &KRsaSignerDescription, 100, 90, 
sl@0
   229
	256, KRSASignerPaddingModes, sizeof(KRSASignerPaddingModes)/sizeof(KRSASignerPaddingModes[0]), 3};
sl@0
   230
sl@0
   231
	/**
sl@0
   232
	DSA Signer Characteristics
sl@0
   233
	*/
sl@0
   234
	static const TInt32 KCryptoPluginDsaSigner = 0x102831DB;
sl@0
   235
	static const TUid KCryptoPluginDsaSignerUid={KCryptoPluginDsaSigner};
sl@0
   236
	static const TInt32 KDSASignerPaddingModes[]={KPaddingModeNone};
sl@0
   237
	
sl@0
   238
	static const TAsymmetricSignatureCharacteristics KDSASigner_1 = {KSignerInterface, KAlgorithmSignerDsa, KCryptoPluginDsaSigner, &KSymbian, EFalse, EFalse, 6, &KDsaSignerDescription, 100, 90, 
sl@0
   239
	256, KDSASignerPaddingModes, sizeof(KDSASignerPaddingModes)/sizeof(KDSASignerPaddingModes[0]), 3};
sl@0
   240
sl@0
   241
sl@0
   242
	/**
sl@0
   243
	RSA verifier Characteristics
sl@0
   244
	*/
sl@0
   245
	static const TInt32 KCryptoPluginRsaVerifier = 0x102831DC;
sl@0
   246
	static const TUid KCryptoPluginRsaVerifierUid={KCryptoPluginRsaVerifier};
sl@0
   247
	static const TInt32 KRSAVerifierPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature};
sl@0
   248
	
sl@0
   249
	static const TAsymmetricSignatureCharacteristics KRSAVerifier_1 = {KVerifierInterface, KAlgorithmVerifierRsa, KCryptoPluginRsaVerifier, &KSymbian, EFalse, EFalse, 6, &KRsaVerifierDescription, 100, 90, 
sl@0
   250
	256, KRSAVerifierPaddingModes, sizeof(KRSAVerifierPaddingModes)/sizeof(KRSAVerifierPaddingModes[0]), 3};
sl@0
   251
sl@0
   252
	/**
sl@0
   253
	DSA verifier Characteristics
sl@0
   254
	*/
sl@0
   255
	static const TInt32 KCryptoPluginDsaVerifier = 0x102831DD;
sl@0
   256
	static const TUid KCryptoPluginDsaVerifierUid={KCryptoPluginDsaVerifier};
sl@0
   257
	static const TInt32 KDSAVerifierPaddingModes[]={KPaddingModeNone};
sl@0
   258
	
sl@0
   259
	static const TAsymmetricSignatureCharacteristics KDSAVerifier_1 = {KVerifierInterface, KAlgorithmVerifierDsa, KCryptoPluginDsaVerifier, &KSymbian, EFalse, EFalse, 6, &KDsaVerifierDescription, 100, 90, 
sl@0
   260
	256, KDSAVerifierPaddingModes, sizeof(KDSAVerifierPaddingModes)/sizeof(KDSAVerifierPaddingModes[0]), 3};
sl@0
   261
sl@0
   262
	/**
sl@0
   263
	DH Key Agreement Characteristics
sl@0
   264
	*/
sl@0
   265
	static const TInt32 KCryptoPluginDhKeyAgreement = 0x102831DE;	// used to identify the CKeyAgreementImpl derived class within the plugin to use
sl@0
   266
	static const TUid KCryptoPluginDhKeyAgreementUid={KCryptoPluginDhKeyAgreement};	// returned by the CKeyAgreementImpl derived class
sl@0
   267
	static const TKeyAgreementCharacteristics KDH_1 = {KKeyAgreementInterface, KAlgorithmKeyAgreementDH, KCryptoPluginDhKeyAgreement, &KSymbian, EFalse, EFalse, 6, &KDHDescription, 100, 90};
sl@0
   268
sl@0
   269
	/**
sl@0
   270
	DH Key Pair Generator Characteristics
sl@0
   271
	*/
sl@0
   272
	static const TInt32 KCryptoPluginDhKeyPairGen = 0x102831DF;
sl@0
   273
	static const TUid KCryptoPluginDhKeyPairGenUid={KCryptoPluginDhKeyPairGen};
sl@0
   274
	static const TAsymmetricKeypairGeneratorCharacteristics KDHKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmDHKeyPairGenerator, KCryptoPluginDhKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KDhKeyPairDescription, 100, 90, 1024};
sl@0
   275
sl@0
   276
	/**
sl@0
   277
	RSA Key Pair Generator Characteristics
sl@0
   278
	*/
sl@0
   279
	static const TInt32 KCryptoPluginRsaKeyPairGen = 0x102831E0;
sl@0
   280
	static const TUid KCryptoPluginRsaKeyPairGenUid={KCryptoPluginRsaKeyPairGen};
sl@0
   281
	static const TAsymmetricKeypairGeneratorCharacteristics KRSAKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmRSAKeyPairGenerator, KCryptoPluginRsaKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KRsaKeyPairDescription, 100, 90, 1024};
sl@0
   282
sl@0
   283
	/**
sl@0
   284
	DSA Key Pair Generator Characteristics
sl@0
   285
	*/
sl@0
   286
	static const TInt32 KCryptoPluginDsaKeyPairGen = 0x102831E1;
sl@0
   287
	static const TUid KCryptoPluginDsaKeyPairGenUid={KCryptoPluginDsaKeyPairGen};
sl@0
   288
	static const TAsymmetricKeypairGeneratorCharacteristics KDSAKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmDSAKeyPairGenerator, KCryptoPluginDsaKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KDsaKeyPairDescription, 100, 90, 1024};
sl@0
   289
sl@0
   290
sl@0
   291
/******************************MAC INTERFACE PLUG-INS' CHARACTERISTICS***************************/	
sl@0
   292
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT	
sl@0
   293
	_ROMLIT16(KHmacMd2Description, "HmacMd2");
sl@0
   294
	_ROMLIT16(KHmacMd4Description, "HmacMd4");
sl@0
   295
	_ROMLIT16(KHmacMd5Description, "HmacMd5");
sl@0
   296
	_ROMLIT16(KHmacSha1Description, "HmacSha1");
sl@0
   297
	_ROMLIT16(KHmacSha224Description, "HmacSha224");
sl@0
   298
	_ROMLIT16(KHmacSha256Description, "HmacSha256");
sl@0
   299
	_ROMLIT16(KHmacSha384Description, "HmacSha384");
sl@0
   300
	_ROMLIT16(KHmacSha512Description, "HmacSha512");
sl@0
   301
	_ROMLIT16(KMacAesXcbcMac96Description, "AesXcbcMac96");
sl@0
   302
	_ROMLIT16(KMacAesXcbcPrf128Description, "AesXcbcPrf128");
sl@0
   303
	/**
sl@0
   304
	 * AES-XCBC-MAC-96 MAC Plugin Characteristics
sl@0
   305
	 */		            
sl@0
   306
	static const TInt32 KCryptoPluginMacAesXcbcMac96 = 0x2001EDA8;	
sl@0
   307
	static const TUid KCryptoPluginMacAesXcbcMac96Uid= {KCryptoPluginMacAesXcbcMac96};
sl@0
   308
	static const TMacCharacteristics KMac_1 = {
sl@0
   309
                                               KMacInterface, 
sl@0
   310
                                               KAlgorithmCipherAesXcbcMac96, 
sl@0
   311
			                                   KCryptoPluginMacAesXcbcMac96, 
sl@0
   312
			                                   &KSymbian, 
sl@0
   313
			                                   EFalse, EFalse, 6, 
sl@0
   314
			                                   &KMacAesXcbcMac96Description, 
sl@0
   315
			                                   100, 90, KSymmetricCipherMode,
sl@0
   316
			                                   NULL,&KAes_1
sl@0
   317
											   };
sl@0
   318
	/**
sl@0
   319
	 * AES-XCBC-PRF-128 MAC Plugin Characteristics
sl@0
   320
	 */		
sl@0
   321
	static const TInt32 KCryptoPluginMacAesXcbcPrf128  = 0x2001EDA9;	
sl@0
   322
	static const TUid KCryptoPluginMacAesXcbcPrf128Uid = {KCryptoPluginMacAesXcbcPrf128};
sl@0
   323
	static const TMacCharacteristics KMac_2 = {
sl@0
   324
                                               KMacInterface, 
sl@0
   325
                                               KAlgorithmCipherAesXcbcPrf128, 
sl@0
   326
			                                   KCryptoPluginMacAesXcbcPrf128, 
sl@0
   327
			                                   &KSymbian, 
sl@0
   328
			                                   EFalse, EFalse, 6, 
sl@0
   329
			                                   &KMacAesXcbcPrf128Description, 
sl@0
   330
			                                   100, 90, KSymmetricCipherMode,
sl@0
   331
			                                   NULL,&KAes_1
sl@0
   332
											   };
sl@0
   333
	/**
sl@0
   334
	 * HASH-MD2 MAC Plugin Characteristics
sl@0
   335
	 */		
sl@0
   336
	static const TInt32 KCryptoPluginMacHashMd2  = 0x2001EDA0;	
sl@0
   337
	static const TUid KCryptoPluginMacHashMd2Uid = {KCryptoPluginMacHashMd2};
sl@0
   338
	static const TMacCharacteristics KMac_3 = {
sl@0
   339
                                               KMacInterface, 
sl@0
   340
										       KAlgorithmHashMd2, 
sl@0
   341
				                               KCryptoPluginMacHashMd2, 
sl@0
   342
				                               &KSymbian, 
sl@0
   343
				                               EFalse, EFalse, 6, 
sl@0
   344
				                               &KHmacMd2Description, 
sl@0
   345
				                               100, 90, KHmacMode,
sl@0
   346
				                               &KMd2_1, NULL 
sl@0
   347
						                       };
sl@0
   348
	/**
sl@0
   349
	 * HASH-MD4 MAC Plugin Characteristics
sl@0
   350
	 */		
sl@0
   351
	static const TInt32 KCryptoPluginMacHashMd4  = 0x2001EDA1;	
sl@0
   352
	static const TUid KCryptoPluginMacHashMd4Uid = {KCryptoPluginMacHashMd4};
sl@0
   353
	static const TMacCharacteristics KMac_4 = {
sl@0
   354
                                               KMacInterface, 
sl@0
   355
										       KAlgorithmHashMd4, 
sl@0
   356
										       KCryptoPluginMacHashMd4, 
sl@0
   357
				                               &KSymbian, 
sl@0
   358
				                               EFalse, EFalse, 6, 
sl@0
   359
				                               &KHmacMd4Description, 
sl@0
   360
				                               100, 90, KHmacMode,
sl@0
   361
				                               &KMd4_1, NULL 
sl@0
   362
						                       };
sl@0
   363
	/**
sl@0
   364
	 * HASH-MD5 MAC Plugin Characteristics
sl@0
   365
	 */		
sl@0
   366
	static const TInt32 KCryptoPluginMacHashMd5  = 0x2001EDA2;	
sl@0
   367
	static const TUid KCryptoPluginMacHashMd5Uid = {KCryptoPluginMacHashMd5};
sl@0
   368
	static const TMacCharacteristics KMac_5 = {
sl@0
   369
                                               KMacInterface, 
sl@0
   370
										       KAlgorithmHashMd5, 
sl@0
   371
										       KCryptoPluginMacHashMd5, 
sl@0
   372
				                               &KSymbian, 
sl@0
   373
				                               EFalse, EFalse, 6, 
sl@0
   374
				                               &KHmacMd5Description, 
sl@0
   375
				                               100, 90, KHmacMode,
sl@0
   376
				                               &KMd5_1, NULL 
sl@0
   377
						                       };
sl@0
   378
	/**
sl@0
   379
	 * HASH-SHA1 MAC Plugin Characteristics
sl@0
   380
	 */		
sl@0
   381
	static const TInt32 KCryptoPluginMacHashSha1  = 0x2001EDA3;	
sl@0
   382
	static const TUid KCryptoPluginMacHashSha1Uid = {KCryptoPluginMacHashSha1};
sl@0
   383
	static const TMacCharacteristics KMac_6 = {
sl@0
   384
                                               KMacInterface, 
sl@0
   385
										       KAlgorithmHashSha1, 
sl@0
   386
										       KCryptoPluginMacHashSha1, 
sl@0
   387
				                               &KSymbian, 
sl@0
   388
				                               EFalse, EFalse, 6, 
sl@0
   389
				                               &KHmacSha1Description, 
sl@0
   390
				                               100, 90, KHmacMode,
sl@0
   391
				                               &KSha1_1, NULL 
sl@0
   392
						                       };
sl@0
   393
	/**
sl@0
   394
	 * HASH-SHA224 MAC Plugin Characteristics
sl@0
   395
	 */		
sl@0
   396
	static const TInt32 KCryptoPluginMacHashSha224  = 0x2001EDA4;	
sl@0
   397
	static const TUid KCryptoPluginMacHashSha224Uid = {KCryptoPluginMacHashSha224};
sl@0
   398
	static const TMacCharacteristics KMac_7 = {
sl@0
   399
                                               KMacInterface, 
sl@0
   400
										       KAlgorithmHashSha224, 
sl@0
   401
										       KCryptoPluginMacHashSha224, 
sl@0
   402
				                               &KSymbian, 
sl@0
   403
				                               EFalse, EFalse, 6, 
sl@0
   404
				                               &KHmacSha224Description, 
sl@0
   405
				                               100, 90, KHmacMode,
sl@0
   406
				                               &KSha224_1, NULL 
sl@0
   407
						                       };
sl@0
   408
	/**
sl@0
   409
	 * HASH-SHA256 MAC Plugin Characteristics
sl@0
   410
	 */		
sl@0
   411
	static const TInt32 KCryptoPluginMacHashSha256  = 0x2001EDA5;	
sl@0
   412
	static const TUid KCryptoPluginMacHashSha256Uid = {KCryptoPluginMacHashSha256};
sl@0
   413
	static const TMacCharacteristics KMac_8 = {
sl@0
   414
                                               KMacInterface, 
sl@0
   415
										       KAlgorithmHashSha256, 
sl@0
   416
										       KCryptoPluginMacHashSha256, 
sl@0
   417
				                               &KSymbian, 
sl@0
   418
				                               EFalse, EFalse, 6, 
sl@0
   419
				                               &KHmacSha256Description, 
sl@0
   420
				                               100, 90, KHmacMode,
sl@0
   421
				                               &KSha256_1, NULL 
sl@0
   422
						                       };
sl@0
   423
	/**
sl@0
   424
	 * HASH-SHA384 MAC Plugin Characteristics
sl@0
   425
	 */		
sl@0
   426
	static const TInt32 KCryptoPluginMacHashSha384  = 0x2001EDA6;	
sl@0
   427
	static const TUid KCryptoPluginMacHashSha384Uid = {KCryptoPluginMacHashSha384};
sl@0
   428
	static const TMacCharacteristics KMac_9 = {
sl@0
   429
                                               KMacInterface, 
sl@0
   430
										       KAlgorithmHashSha384, 
sl@0
   431
										       KCryptoPluginMacHashSha384, 
sl@0
   432
				                               &KSymbian, 
sl@0
   433
				                               EFalse, EFalse, 6, 
sl@0
   434
				                               &KHmacSha384Description, 
sl@0
   435
				                               100, 90, KHmacMode,
sl@0
   436
				                               &KSha384_1, NULL 
sl@0
   437
						                       };
sl@0
   438
	/**
sl@0
   439
	 * HASH-SHA512 MAC Plugin Characteristics
sl@0
   440
	 */		
sl@0
   441
	static const TInt32 KCryptoPluginMacHashSha512  = 0x2001EDA7;	
sl@0
   442
	static const TUid KCryptoPluginMacHashSha512Uid = {KCryptoPluginMacHashSha512};
sl@0
   443
	static const TMacCharacteristics KMac_10 = {
sl@0
   444
                                               KMacInterface, 
sl@0
   445
										       KAlgorithmHashSha512, 
sl@0
   446
										       KCryptoPluginMacHashSha512, 
sl@0
   447
				                               &KSymbian, 
sl@0
   448
				                               EFalse, EFalse, 6, 
sl@0
   449
				                               &KHmacSha512Description, 
sl@0
   450
				                               100, 90, KHmacMode,
sl@0
   451
				                               &KSha512_1, NULL 
sl@0
   452
						                       };
sl@0
   453
	/**
sl@0
   454
	 * Mac implementation characteristic table
sl@0
   455
	 */
sl@0
   456
	static const TMacCharacteristics* const KMacCharacteristics[] = {
sl@0
   457
												&KMac_1, &KMac_2, &KMac_3, 
sl@0
   458
												&KMac_4, &KMac_5, &KMac_6,
sl@0
   459
												&KMac_7, &KMac_8, &KMac_9,
sl@0
   460
												&KMac_10
sl@0
   461
												};	
sl@0
   462
	
sl@0
   463
#endif
sl@0
   464
/***********************************************************************************************/
sl@0
   465
sl@0
   466
	/**
sl@0
   467
	For each crypto algorithm type implemented in this plugin list the characteristics
sl@0
   468
	*/
sl@0
   469
	
sl@0
   470
	/**
sl@0
   471
	Hash implementation characteristic table
sl@0
   472
	*/
sl@0
   473
	static const THashCharacteristics* const KHashCharacteristics[] = 
sl@0
   474
		{
sl@0
   475
		&KMd2_1, &KMd5_1, &KSha1_1, &KMd4_1, &KSha224_1, &KSha256_1, &KSha384_1, &KSha512_1
sl@0
   476
		};
sl@0
   477
sl@0
   478
	/**
sl@0
   479
	Random implementation characteristic table
sl@0
   480
	*/
sl@0
   481
	
sl@0
   482
	static const TRandomCharacteristics* const KRandomCharacteristics[]=
sl@0
   483
		{
sl@0
   484
		&KRandom_1	
sl@0
   485
		};
sl@0
   486
		
sl@0
   487
	/**
sl@0
   488
	Symmetric Cipher implementation characteristic table
sl@0
   489
	*/
sl@0
   490
	static const TSymmetricCipherCharacteristics* const KSymmetricCipherCharacteristics[]=
sl@0
   491
		{
sl@0
   492
		&KDes_1, &K3Des_1, &KAes_1, &KRc2_1, &KArc4_1
sl@0
   493
		};
sl@0
   494
sl@0
   495
sl@0
   496
	/**
sl@0
   497
	Asymmetric Cipher implementation characteristic table
sl@0
   498
	*/
sl@0
   499
	static const TAsymmetricCipherCharacteristics* const KAsymmetricCipherCharacteristics[]=
sl@0
   500
		{
sl@0
   501
		&KRSA_1	
sl@0
   502
		};
sl@0
   503
sl@0
   504
	/**
sl@0
   505
	Signer implementation characteristic table
sl@0
   506
	*/
sl@0
   507
	static const TAsymmetricSignatureCharacteristics* const KSignerCharacteristics[]=
sl@0
   508
		{
sl@0
   509
		&KRSASigner_1, &KDSASigner_1
sl@0
   510
		};
sl@0
   511
sl@0
   512
sl@0
   513
	/**
sl@0
   514
	Verifier implementation characteristic table
sl@0
   515
	*/
sl@0
   516
	static const TAsymmetricSignatureCharacteristics* const KVerifierCharacteristics[]=
sl@0
   517
		{
sl@0
   518
		&KRSAVerifier_1, &KDSAVerifier_1
sl@0
   519
		};
sl@0
   520
sl@0
   521
	/**
sl@0
   522
	Key Agreement implementation characteristic table
sl@0
   523
	*/
sl@0
   524
	static const TKeyAgreementCharacteristics* const KKeyAgreementCharacteristics[]=
sl@0
   525
		{
sl@0
   526
		&KDH_1
sl@0
   527
		};
sl@0
   528
sl@0
   529
	/**
sl@0
   530
	Key pair generator implementation characteristic table
sl@0
   531
	*/
sl@0
   532
	static const TAsymmetricKeypairGeneratorCharacteristics* const KKeyPairGeneratorCharacteristics[]=
sl@0
   533
		{
sl@0
   534
		&KDHKeyPairGenerator_1, &KRSAKeyPairGenerator_1, &KDSAKeyPairGenerator_1
sl@0
   535
		};
sl@0
   536
	}
sl@0
   537
sl@0
   538
#endif //__CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__