os/security/crypto/weakcryptospi/test/tplugins/inc/tplugin02/pluginconfig.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
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
#include "pluginconfigcommon.h"
sl@0
    33
sl@0
    34
namespace SoftwareCrypto
sl@0
    35
	{
sl@0
    36
	using namespace CryptoSpi;
sl@0
    37
	using namespace PluginCommon;
sl@0
    38
sl@0
    39
	/**
sl@0
    40
	Creator Name
sl@0
    41
	*/
sl@0
    42
	_ROMLIT16(KTestFramework, "TestFramework");
sl@0
    43
	
sl@0
    44
	/**
sl@0
    45
	Implemetation Name
sl@0
    46
	*/
sl@0
    47
	_ROMLIT16(KMd2Description, "Md2");
sl@0
    48
	_ROMLIT16(KMd5Description, "Md5");
sl@0
    49
	_ROMLIT16(KSha1Description, "Sha1");
sl@0
    50
	_ROMLIT16(KHmacMd2Description, "HmacMd2");
sl@0
    51
	_ROMLIT16(KHmacMd5Description, "HmacMd5");
sl@0
    52
	_ROMLIT16(KHmacSha1Description, "HmacSha1");
sl@0
    53
	_ROMLIT16(KRandomDescription, "Random");
sl@0
    54
	_ROMLIT16(KDesDescription, "Des");
sl@0
    55
	_ROMLIT16(K3DesDescription, "3Des");
sl@0
    56
	_ROMLIT16(KAesDescription, "Aes");
sl@0
    57
	_ROMLIT16(KRC2Description, "RC2");
sl@0
    58
	_ROMLIT16(KARC4Description, "ARC4");
sl@0
    59
	_ROMLIT16(KRsaCipherDescription, "Rsa");
sl@0
    60
	_ROMLIT16(KRsaSignerDescription, "RsaSigner");
sl@0
    61
	_ROMLIT16(KDsaSignerDescription, "DsaSigner");
sl@0
    62
	_ROMLIT16(KRsaVerifierDescription, "RsaVerifier");
sl@0
    63
	_ROMLIT16(KDsaVerifierDescription, "DsaVerifier");
sl@0
    64
	_ROMLIT16(KDHDescription, "DH");
sl@0
    65
	_ROMLIT16(KSymmetricKeyGeneratorDescription, "Symmetric Key Generator");
sl@0
    66
	_ROMLIT16(KKeyPairDescription, "Key Pair Generator");
sl@0
    67
sl@0
    68
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT
sl@0
    69
	_ROMLIT16(KAesXcbcMac96Description, "AesXcbcMac96");
sl@0
    70
	_ROMLIT16(KAesXcbcPrf128Description, "AesXcbcPrf128");
sl@0
    71
#endif
sl@0
    72
sl@0
    73
	/**
sl@0
    74
	Common Mode Arrays
sl@0
    75
	*/
sl@0
    76
	static const TInt32 KDesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
sl@0
    77
	static const TInt32 KDesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC};
sl@0
    78
	static const TInt32 KHashOperationModes[]={KHashMode, KHmacMode};
sl@0
    79
	static const TInt32 KRSACipherPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Encryption};
sl@0
    80
	static const TInt32 KRSASignerPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature};
sl@0
    81
sl@0
    82
	/**
sl@0
    83
	Test Plugin 02 - Random 1
sl@0
    84
	*/
sl@0
    85
	static const TInt32 KTestPlugin02Random_1 = 0x102831B0;
sl@0
    86
	static const TUid KTestPlugin02Random_1Uid = {KTestPlugin02Random_1};
sl@0
    87
	static const TRandomCharacteristics KRandom_1 = 
sl@0
    88
		{
sl@0
    89
		KRandomInterface, 
sl@0
    90
		KAlgorithmRandom, 
sl@0
    91
		KTestPlugin02Random_1, 
sl@0
    92
		&KSymbianTestFramework, 
sl@0
    93
		EFalse, 
sl@0
    94
		EFalse, 
sl@0
    95
		6, 
sl@0
    96
		&KRandomDescription, 
sl@0
    97
		100, 
sl@0
    98
		90, 
sl@0
    99
		3
sl@0
   100
		};	
sl@0
   101
sl@0
   102
	/**
sl@0
   103
	Test Plugin 02 - Hash MD5 1
sl@0
   104
	*/
sl@0
   105
	static const TInt32 KTestPlugin02Md5_1 = 0x102831B1;
sl@0
   106
	static const TUid KTestPlugin02Md5_1Uid = {KTestPlugin02Md5_1};
sl@0
   107
	static const THashCharacteristics KMd5_1 = 
sl@0
   108
		{
sl@0
   109
		KHashInterface, 
sl@0
   110
		KAlgorithmHashMd5, 
sl@0
   111
		KTestPlugin02Md5_1, 
sl@0
   112
		&KTestFramework, 
sl@0
   113
		EFalse, 
sl@0
   114
		EFalse, 
sl@0
   115
		6, 
sl@0
   116
		&KHmacMd5Description, 
sl@0
   117
		100, 
sl@0
   118
		1024, 
sl@0
   119
		512, 
sl@0
   120
		128,
sl@0
   121
		KHashOperationModes, sizeof(KHashOperationModes)/sizeof(TInt32)
sl@0
   122
		};
sl@0
   123
sl@0
   124
	/**
sl@0
   125
	Test Plugin 02 - Symmetric Cipher DES 1
sl@0
   126
	*/
sl@0
   127
	
sl@0
   128
	static const TInt32 KTestPlugin02Des_1 = 0x102831B2;
sl@0
   129
	static const TUid KTestPlugin02Des_1Uid = {KTestPlugin02Des_1};
sl@0
   130
	static const TSymmetricCipherCharacteristics KDes_1 = 
sl@0
   131
		{
sl@0
   132
		KSymmetricCipherInterface, 
sl@0
   133
		KAlgorithmCipherDes, 
sl@0
   134
		KTestPlugin02Des_1, 
sl@0
   135
		&KSymbianTestFramework, 
sl@0
   136
		EFalse, 
sl@0
   137
		EFalse, 
sl@0
   138
		6, 
sl@0
   139
		&KDesDescription, 
sl@0
   140
		100, 
sl@0
   141
		90, 
sl@0
   142
		64, 
sl@0
   143
		64, 
sl@0
   144
		KDesPaddingModes, sizeof(KDesPaddingModes)/sizeof(TInt32), 
sl@0
   145
		KDesCryptoModes, sizeof(KDesCryptoModes)/sizeof(TInt32),
sl@0
   146
		4
sl@0
   147
		};	
sl@0
   148
sl@0
   149
	/**
sl@0
   150
	Test Plugin 02 - Symmetric Cipher DES 2
sl@0
   151
	*/
sl@0
   152
	static const TInt32 KTestPlugin02Des_2 = 0x102831B3;
sl@0
   153
	static const TUid KTestPlugin02Des_2Uid = {KTestPlugin02Des_2};
sl@0
   154
	static const TSymmetricCipherCharacteristics KDes_2 = 
sl@0
   155
		{
sl@0
   156
		KSymmetricCipherInterface, 
sl@0
   157
		KAlgorithmCipherDes, 
sl@0
   158
		KTestPlugin02Des_2, 
sl@0
   159
		&KSymbianTestFramework, 
sl@0
   160
		EFalse, 
sl@0
   161
		EFalse, 
sl@0
   162
		6, 
sl@0
   163
		&KDesDescription, 
sl@0
   164
		101, 
sl@0
   165
		90, 
sl@0
   166
		64, 
sl@0
   167
		32, 
sl@0
   168
		KDesPaddingModes, sizeof(KDesPaddingModes)/sizeof(TInt32), 
sl@0
   169
		KDesCryptoModes, sizeof(KDesCryptoModes)/sizeof(TInt32),
sl@0
   170
		3
sl@0
   171
		};	
sl@0
   172
sl@0
   173
	/**
sl@0
   174
	Test Plugin 02 - Asymmetric Cipher RSA 1
sl@0
   175
	*/
sl@0
   176
	static const TInt32 KTestPlugin02Rsa_1 = 0x102831B4;
sl@0
   177
	static const TUid KTestPlugin02Rsa_1Uid = {KTestPlugin02Rsa_1};
sl@0
   178
	static const TAsymmetricCipherCharacteristics KRSA_1 = 
sl@0
   179
		{
sl@0
   180
		KAsymmetricCipherInterface, 
sl@0
   181
		KAlgorithmCipherRsa, 
sl@0
   182
		KTestPlugin02Rsa_1, 
sl@0
   183
		&KSymbianTestFramework, 
sl@0
   184
		EFalse, 
sl@0
   185
		EFalse, 
sl@0
   186
		6, 
sl@0
   187
		&KRsaCipherDescription, 
sl@0
   188
		100, 
sl@0
   189
		90, 
sl@0
   190
		256,
sl@0
   191
		KRSACipherPaddingModes, sizeof(KRSACipherPaddingModes)/sizeof(TInt32),
sl@0
   192
		3
sl@0
   193
		};	
sl@0
   194
sl@0
   195
	/**
sl@0
   196
	Test Plugin 02 - Asymmetric Cipher RSA 2
sl@0
   197
	*/
sl@0
   198
	static const TInt32 KTestPlugin02Rsa_2 = 0x102831B5;
sl@0
   199
	static const TUid KTestPlugin02Rsa_2Uid = {KTestPlugin02Rsa_2};
sl@0
   200
	static const TAsymmetricCipherCharacteristics KRSA_2 = 
sl@0
   201
		{
sl@0
   202
		KAsymmetricCipherInterface, 
sl@0
   203
		KAlgorithmCipherRsa, 
sl@0
   204
		KTestPlugin02Rsa_2, 
sl@0
   205
		&KSymbianTestFramework, 
sl@0
   206
		EFalse, 
sl@0
   207
		EFalse, 
sl@0
   208
		6, 
sl@0
   209
		&KRsaCipherDescription, 
sl@0
   210
		100, 
sl@0
   211
		90, 
sl@0
   212
		512,
sl@0
   213
		KRSACipherPaddingModes, sizeof(KRSACipherPaddingModes)/sizeof(TInt32),
sl@0
   214
		2
sl@0
   215
		};
sl@0
   216
		
sl@0
   217
	/**
sl@0
   218
	Test Plugin 02 - RSA Key Generator 1
sl@0
   219
	*/
sl@0
   220
	static const TInt32 KTestPlugin02RsaKeyGen_1 = 0x102831B6;
sl@0
   221
	static const TUid KTestPlugin02RsaKeyGen_1Uid={KTestPlugin02RsaKeyGen_1};
sl@0
   222
	static const TAsymmetricKeypairGeneratorCharacteristics KRSAKeyPairGenerator_1 = 
sl@0
   223
		{
sl@0
   224
		KKeypairGeneratorInterface, 
sl@0
   225
		KAlgorithmRSAKeyPairGenerator, 
sl@0
   226
		KTestPlugin02RsaKeyGen_1, 
sl@0
   227
		&KSymbianTestFramework, 
sl@0
   228
		EFalse, 
sl@0
   229
		EFalse, 
sl@0
   230
		6, 
sl@0
   231
		&KKeyPairDescription, 
sl@0
   232
		100, 
sl@0
   233
		90, 
sl@0
   234
		1024
sl@0
   235
		};
sl@0
   236
		
sl@0
   237
	/**
sl@0
   238
	Test Plugin 02 - DH Key Pair Generator
sl@0
   239
	*/
sl@0
   240
	static const TInt32 KTestPlugin02DHKeyGen_1 = 0x102831B7;
sl@0
   241
	static const TUid KTestPlugin02DHKeyGen_1Uid={KTestPlugin02DHKeyGen_1};
sl@0
   242
	static const TAsymmetricKeypairGeneratorCharacteristics KDHKeyPairGenerator_1 = 
sl@0
   243
		{
sl@0
   244
		KKeypairGeneratorInterface, 
sl@0
   245
		KAlgorithmDHKeyPairGenerator, 
sl@0
   246
		KTestPlugin02DHKeyGen_1, 
sl@0
   247
		&KSymbianTestFramework, 
sl@0
   248
		EFalse, 
sl@0
   249
		EFalse, 
sl@0
   250
		6, 
sl@0
   251
		&KKeyPairDescription, 
sl@0
   252
		100, 
sl@0
   253
		90, 
sl@0
   254
		1024
sl@0
   255
		};
sl@0
   256
		
sl@0
   257
	/**
sl@0
   258
	Test Plugin 02 - RSA Signer 1
sl@0
   259
	*/
sl@0
   260
	static const TInt32 KTestPlugin02RsaSigner_1 = 0x102831B8;
sl@0
   261
	static const TUid KTestPlugin02RsaSigner_1Uid={KTestPlugin02RsaSigner_1};
sl@0
   262
	static const TAsymmetricSignatureCharacteristics KRSASigner_1 = 
sl@0
   263
		{
sl@0
   264
		KSignerInterface, 
sl@0
   265
		KAlgorithmSignerRsa, 
sl@0
   266
		KTestPlugin02RsaSigner_1, 
sl@0
   267
		&KSymbianTestFramework, 
sl@0
   268
		EFalse, 
sl@0
   269
		EFalse, 
sl@0
   270
		6, 
sl@0
   271
		&KRsaSignerDescription, 
sl@0
   272
		100, 
sl@0
   273
		90, 
sl@0
   274
		256, 
sl@0
   275
		KRSASignerPaddingModes, sizeof(KRSASignerPaddingModes)/sizeof(TInt32),
sl@0
   276
		3
sl@0
   277
		};
sl@0
   278
	
sl@0
   279
	/**
sl@0
   280
	Test Plugin 02 - DH Key Agreement 1
sl@0
   281
	*/
sl@0
   282
	static const TInt32 KTestPlugin02DHKeyAgree_1 = 0x102831B9;	
sl@0
   283
	static const TUid KTestPlugin02DHKeyAgree_1Uid={KTestPlugin02DHKeyAgree_1};
sl@0
   284
	static const TKeyAgreementCharacteristics KDH_1 = 
sl@0
   285
		{
sl@0
   286
		KKeyAgreementInterface, 
sl@0
   287
		KAlgorithmKeyAgreementDH, 
sl@0
   288
		KTestPlugin02DHKeyAgree_1, 
sl@0
   289
		&KSymbianTestFramework, 
sl@0
   290
		EFalse, 
sl@0
   291
		EFalse, 
sl@0
   292
		6, 
sl@0
   293
		&KDHDescription, 
sl@0
   294
		100, 
sl@0
   295
		90
sl@0
   296
		};
sl@0
   297
		
sl@0
   298
	/**
sl@0
   299
	Test Plugin 02 - Random 2
sl@0
   300
	*/
sl@0
   301
	static const TInt32 KTestPlugin02Random_2 = 0x102831BA;
sl@0
   302
	static const TUid KTestPlugin02Random_2Uid = {KTestPlugin02Random_2};
sl@0
   303
	static const TRandomCharacteristics KRandom_2 = 
sl@0
   304
		{
sl@0
   305
		KRandomInterface, 
sl@0
   306
		KAlgorithmRandom, 
sl@0
   307
		KTestPlugin02Random_2, 
sl@0
   308
		&KSymbianTestFramework, 
sl@0
   309
		EFalse, 
sl@0
   310
		EFalse, 
sl@0
   311
		6, 
sl@0
   312
		&KRandomDescription, 
sl@0
   313
		100, 
sl@0
   314
		90, 
sl@0
   315
		2
sl@0
   316
		};
sl@0
   317
 
sl@0
   318
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT
sl@0
   319
	/**
sl@0
   320
	Test Plugin 02 - AES
sl@0
   321
	*/
sl@0
   322
	static const TInt32 KTestPlugin02Aes = 0x102831BB;
sl@0
   323
	static const TUid KTestPlugin02AesUid={KTestPlugin02Aes};
sl@0
   324
	static const TInt32 KTestPlugin02AesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
sl@0
   325
	static const TInt32 KTestPlugin02AesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR};
sl@0
   326
	
sl@0
   327
	static const TSymmetricCipherCharacteristics KAes_1 = 
sl@0
   328
		{
sl@0
   329
		KSymmetricCipherInterface,
sl@0
   330
		KAlgorithmCipherAes,
sl@0
   331
		KTestPlugin02Aes,
sl@0
   332
		&KSymbianTestFramework,
sl@0
   333
		EFalse,
sl@0
   334
		EFalse,
sl@0
   335
		6,
sl@0
   336
		&KAesDescription,
sl@0
   337
		100,
sl@0
   338
		90, 
sl@0
   339
		256 /* max key bits */,
sl@0
   340
		128 /* block bits */,
sl@0
   341
		KTestPlugin02AesPaddingModes,
sl@0
   342
		sizeof(KTestPlugin02AesPaddingModes)/sizeof(KTestPlugin02AesPaddingModes[0]),
sl@0
   343
		KTestPlugin02AesCryptoModes, sizeof(KTestPlugin02AesCryptoModes)/sizeof(KTestPlugin02AesCryptoModes[0]),
sl@0
   344
		3
sl@0
   345
		};
sl@0
   346
sl@0
   347
sl@0
   348
	/**
sl@0
   349
	Test Plugin 02 - AesXcbcMac96
sl@0
   350
	*/
sl@0
   351
	static const TInt32 KTestPlugin02XcbcMac96 = 0x102831BC;
sl@0
   352
	static const TUid KTestPlugin02XcbcMac96Uid = {KTestPlugin02XcbcMac96};	
sl@0
   353
	static const TMacCharacteristics KXcbcMac96Char = 
sl@0
   354
		{
sl@0
   355
		KMacInterface, 
sl@0
   356
		KAlgorithmCipherAesXcbcMac96, 
sl@0
   357
		KTestPlugin02XcbcMac96, 
sl@0
   358
		&KSymbianTestFramework, 
sl@0
   359
		EFalse, 
sl@0
   360
		EFalse, 
sl@0
   361
		6, 
sl@0
   362
		&KAesXcbcMac96Description, 
sl@0
   363
		20, 
sl@0
   364
		200, 
sl@0
   365
		KSymmetricCipherMode, 
sl@0
   366
		0,
sl@0
   367
		&KAes_1
sl@0
   368
		};
sl@0
   369
sl@0
   370
	/**
sl@0
   371
	Test Plugin 02 - AesXcbcPrf128
sl@0
   372
	*/
sl@0
   373
	static const TInt32 KTestPlugin02XcbcPrf128 = 0x102831BD;
sl@0
   374
	static const TUid KTestPlugin02XcbcMacPrf128Uid = {KTestPlugin02XcbcPrf128};	
sl@0
   375
	static const TMacCharacteristics KXcbcPrf128Char = 
sl@0
   376
		{
sl@0
   377
		KMacInterface, 
sl@0
   378
		KAlgorithmCipherAesXcbcPrf128, 
sl@0
   379
		KTestPlugin02XcbcPrf128, 
sl@0
   380
		&KSymbianTestFramework, 
sl@0
   381
		EFalse, 
sl@0
   382
		EFalse, 
sl@0
   383
		5, 
sl@0
   384
		&KAesXcbcPrf128Description, 
sl@0
   385
		20, 
sl@0
   386
		90, 
sl@0
   387
		KSymmetricCipherMode, 
sl@0
   388
		0,
sl@0
   389
		&KAes_1
sl@0
   390
		};
sl@0
   391
#endif
sl@0
   392
sl@0
   393
	/**
sl@0
   394
	Random implemetation characteristic table
sl@0
   395
	*/
sl@0
   396
	static const TRandomCharacteristics* const KRandomCharacteristics[]=
sl@0
   397
		{
sl@0
   398
		&KRandom_1, &KRandom_2	
sl@0
   399
		};	
sl@0
   400
sl@0
   401
	/**
sl@0
   402
	Hash implemetation characteristic table
sl@0
   403
	*/
sl@0
   404
	static const THashCharacteristics* const KHashCharacteristics[]=
sl@0
   405
		{
sl@0
   406
		&KMd5_1	
sl@0
   407
		};
sl@0
   408
sl@0
   409
	/**
sl@0
   410
	Symmetric Cipher implemetation characteristic table
sl@0
   411
	*/
sl@0
   412
	static const TSymmetricCipherCharacteristics* const KSymmetricCipherCharacteristics[]=
sl@0
   413
		{
sl@0
   414
		&KDes_1, &KDes_2
sl@0
   415
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT
sl@0
   416
, &KAes_1
sl@0
   417
#endif
sl@0
   418
		};	
sl@0
   419
	
sl@0
   420
	/**
sl@0
   421
	Asymmetric Cipher implemetation characteristic table
sl@0
   422
	*/
sl@0
   423
	static const TAsymmetricCipherCharacteristics* const KAsymmetricCipherCharacteristics[]=
sl@0
   424
		{
sl@0
   425
		&KRSA_1, &KRSA_2	
sl@0
   426
		};
sl@0
   427
		
sl@0
   428
	/**
sl@0
   429
	Key pair generator implementation characteristic table
sl@0
   430
	*/
sl@0
   431
	static const TAsymmetricKeypairGeneratorCharacteristics* const KKeyPairGeneratorCharacteristics[]=
sl@0
   432
		{
sl@0
   433
		&KRSAKeyPairGenerator_1, &KDHKeyPairGenerator_1
sl@0
   434
		};
sl@0
   435
		
sl@0
   436
	/**
sl@0
   437
	Signer implementation characteristic table
sl@0
   438
	*/
sl@0
   439
	static const TAsymmetricSignatureCharacteristics* const KSignerCharacteristics[]=
sl@0
   440
		{
sl@0
   441
		&KRSASigner_1
sl@0
   442
		};
sl@0
   443
			
sl@0
   444
	/**
sl@0
   445
	Key Agreement implementation characteristic table
sl@0
   446
	*/
sl@0
   447
	static const TKeyAgreementCharacteristics* const KKeyAgreementCharacteristics[]=
sl@0
   448
		{
sl@0
   449
		&KDH_1
sl@0
   450
		};
sl@0
   451
	
sl@0
   452
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT
sl@0
   453
	static const TMacCharacteristics* const KMacCharacteristics[]=
sl@0
   454
		{
sl@0
   455
		&KXcbcMac96Char, &KXcbcPrf128Char	
sl@0
   456
		};	
sl@0
   457
#endif
sl@0
   458
	}
sl@0
   459
sl@0
   460
#endif //__CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__