epoc32/include/cryptospi/plugincharacteristics.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
/*
williamr@4
     2
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     3
* All rights reserved.
williamr@4
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of the License "Eclipse Public License v1.0"
williamr@4
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     8
*
williamr@4
     9
* Initial Contributors:
williamr@4
    10
* Nokia Corporation - initial contribution.
williamr@4
    11
*
williamr@4
    12
* Contributors:
williamr@4
    13
*
williamr@4
    14
* Description: 
williamr@4
    15
* plugin characteristic definition
williamr@4
    16
*
williamr@4
    17
*/
williamr@4
    18
williamr@4
    19
williamr@4
    20
/**
williamr@4
    21
 @file
williamr@4
    22
 @publishedAll
williamr@4
    23
 @released
williamr@4
    24
*/
williamr@4
    25
williamr@4
    26
#ifndef __CRYPTOAPI_PLUGINCHARACTERISTICS_H__
williamr@4
    27
#define __CRYPTOAPI_PLUGINCHARACTERISTICS_H__
williamr@4
    28
williamr@4
    29
#include <e32base.h>
williamr@4
    30
#include <cryptospi/cryptoparams.h>
williamr@4
    31
#include <s32mem.h>
williamr@4
    32
williamr@4
    33
// Forward declarations
williamr@4
    34
struct TRomLitC16;
williamr@4
    35
williamr@4
    36
williamr@4
    37
namespace CryptoSpi
williamr@4
    38
	{
williamr@4
    39
	const TInt32 KInterfaceType = 0x10283527;
williamr@4
    40
	const TInt32 KAlgorithmType = 0x10283528;
williamr@4
    41
	const TInt32 KImplementationType = 0x10283529;
williamr@4
    42
	const TInt32 KCreatorNameType = 0x1028352A;
williamr@4
    43
	const TInt32 KIsFIPSApprovedType = 0x1028352B;
williamr@4
    44
	const TInt32 KIsHardwareSupportedType = 0x1028352C;
williamr@4
    45
	const TInt32 KMaxConcurrencySupportedType = 0x1028352D;
williamr@4
    46
	const TInt32 KLatencyType = 0x1028352E;
williamr@4
    47
	const TInt32 KThroughputType = 0x1028352F;
williamr@4
    48
	const TInt32 KBlockSizeType = 0x10283530;
williamr@4
    49
	const TInt32 KOutputSizeType = 0x10283531;
williamr@4
    50
	const TInt32 KSupportedOperationModesType = 0x10283532;
williamr@4
    51
	const TInt32 KBlockingModeType = 0x10283533;
williamr@4
    52
	const TInt32 KMaximumKeyLengthType = 0x10283534;
williamr@4
    53
	const TInt32 KSupportedPaddingModesType = 0x10283535;
williamr@4
    54
	const TInt32 KKeySupportModeType = 0x10283536;
williamr@4
    55
	const TInt32 KConcurrencyType = 0x10283537;
williamr@4
    56
	const TInt32 KExclusiveUseType = 0x10283538;
williamr@4
    57
	
williamr@4
    58
	/**
williamr@4
    59
	The following are the characteristic UIDs which should be used for Rules-based Selector
williamr@4
    60
	*/
williamr@4
    61
	const TUid KNoneUid = {0x00000000};
williamr@4
    62
	const TUid KInterfaceTypeUid = {KInterfaceType};
williamr@4
    63
	const TUid KAlgorithmTypeUid = {KAlgorithmType};
williamr@4
    64
	const TUid KImplementationTypeUid = {KImplementationType};
williamr@4
    65
	const TUid KCreatorNameTypeUid = {KCreatorNameType};
williamr@4
    66
	const TUid KIsFIPSApprovedTypeUid = {KIsFIPSApprovedType};
williamr@4
    67
	const TUid KIsHardwareSupportedTypeUid = {KIsHardwareSupportedType};
williamr@4
    68
	const TUid KMaxConcurrencySupportedTypeUid = {KMaxConcurrencySupportedType};
williamr@4
    69
	const TUid KLatencyTypeUid = {KLatencyType};
williamr@4
    70
	const TUid KThroughputTypeUid = {KThroughputType};
williamr@4
    71
	const TUid KBlockSizeTypeUid = {KBlockSizeType};
williamr@4
    72
	const TUid KOutputSizeTypeUid = {KOutputSizeType};
williamr@4
    73
	const TUid KSupportedOperationModesTypeUid = {KSupportedOperationModesType};
williamr@4
    74
	const TUid KBlockingModeTypeUid = {KBlockingModeType};
williamr@4
    75
	const TUid KMaximumKeyLengthTypeUid = {KMaximumKeyLengthType};
williamr@4
    76
	const TUid KSupportedPaddingModesTypeUid = {KSupportedPaddingModesType};
williamr@4
    77
	const TUid KKeySupportModeTypeUid = {KKeySupportModeType};
williamr@4
    78
	const TUid KConcurrencyTypeUid = {KConcurrencyType};
williamr@4
    79
	const TUid KExclusiveUseTypeUid = {KExclusiveUseType};
williamr@4
    80
williamr@4
    81
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT	
williamr@4
    82
	const TInt32 KMacModeType = 0x2001ED9F;
williamr@4
    83
	const TUid KMacModeTypeUid = {KMacModeType};
williamr@4
    84
#endif
williamr@4
    85
	
williamr@4
    86
	
williamr@4
    87
	typedef TAny TCharacteristics;
williamr@4
    88
williamr@4
    89
	/**
williamr@4
    90
	Common characteristics for all plug-in interface types.
williamr@4
    91
williamr@4
    92
	This MUST be the first element of each characteristics "sub-class" to
williamr@4
    93
	allow sub-classes to be cast directly to a TCommonCharacteristics. This
williamr@4
    94
	is used instead of inheritance because it enables arrays of characteristics
williamr@4
    95
	objects to be defined as static constant data.
williamr@4
    96
	*/ 
williamr@4
    97
	class TCommonCharacteristics
williamr@4
    98
		{
williamr@4
    99
	public:
williamr@4
   100
	
williamr@4
   101
		/**
williamr@4
   102
		 * @internalComponent
williamr@4
   103
		 * 
williamr@4
   104
		 * Externalises common characteristics to a write stream.
williamr@4
   105
		 *
williamr@4
   106
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   107
		 */
williamr@4
   108
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   109
	
williamr@4
   110
	public:
williamr@4
   111
		/**
williamr@4
   112
		Interface UID, e.g hash, symmetric cipher
williamr@4
   113
		*/
williamr@4
   114
		TInt32 iInterfaceUID;
williamr@4
   115
williamr@4
   116
		/**
williamr@4
   117
		Algorithm UID, e.g MD2, 3DES 
williamr@4
   118
		*/
williamr@4
   119
		TInt32 iAlgorithmUID;
williamr@4
   120
williamr@4
   121
		/**
williamr@4
   122
		Implementaion UID
williamr@4
   123
		*/
williamr@4
   124
		TInt32 iImplementationUID;
williamr@4
   125
williamr@4
   126
		/**
williamr@4
   127
		Creator name
williamr@4
   128
		*/	
williamr@4
   129
		const TRomLitC16* iCreatorName;
williamr@4
   130
williamr@4
   131
		/**
williamr@4
   132
		whether the implementation is FIPS compliant
williamr@4
   133
		*/
williamr@4
   134
		TBool iIsFIPSApproved;
williamr@4
   135
williamr@4
   136
		/**
williamr@4
   137
		whether the implementation is a hardware one
williamr@4
   138
		*/
williamr@4
   139
		TBool iIsHardwareSupported;
williamr@4
   140
williamr@4
   141
		/**
williamr@4
   142
		the Maximum concurrent operation supported
williamr@4
   143
		*/
williamr@4
   144
		TUint iMaxConcurrencySupported;
williamr@4
   145
		
williamr@4
   146
		/**
williamr@4
   147
		the Algorithm Name
williamr@4
   148
		*/
williamr@4
   149
		const TRomLitC16* iAlgorithmName;
williamr@4
   150
		
williamr@4
   151
		/**
williamr@4
   152
		The Latency
williamr@4
   153
		*/
williamr@4
   154
		TInt iLatency;
williamr@4
   155
		
williamr@4
   156
		/**
williamr@4
   157
		the Throughput
williamr@4
   158
		*/
williamr@4
   159
		TInt iThroughput;
williamr@4
   160
		};
williamr@4
   161
		
williamr@4
   162
	/**
williamr@4
   163
	Hash Characteristics
williamr@4
   164
	*/	
williamr@4
   165
	class THashCharacteristics
williamr@4
   166
		{
williamr@4
   167
	public:
williamr@4
   168
		/**
williamr@4
   169
		 * @internalComponent
williamr@4
   170
		 * 
williamr@4
   171
		 * Externalises hash characteristics to a write stream.
williamr@4
   172
		 *
williamr@4
   173
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   174
		 **/	
williamr@4
   175
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   176
		
williamr@4
   177
		/**
williamr@4
   178
		 * @deprecated
williamr@4
   179
		 * 
williamr@4
   180
		 * Determines whether an operation mode (e.g. HMAC) is supported by the plug-in 
williamr@4
   181
		 * by searching through iSupportedOperationModes for the UID value corresponding
williamr@4
   182
		 * to the aOperationMode parameter.
williamr@4
   183
		 *
williamr@4
   184
		 * @param aOperationMode	The UID of the operation mode to test
williamr@4
   185
		 * @return 					ETrue if the operation mode is supported; otherwise, EFalse is returned.
williamr@4
   186
		 */
williamr@4
   187
		IMPORT_C TBool IsOperationModeSupported(TUid aOperationMode) const;		
williamr@4
   188
		
williamr@4
   189
	public:
williamr@4
   190
		/**
williamr@4
   191
		Common characteristics
williamr@4
   192
		*/								
williamr@4
   193
		TCommonCharacteristics cmn;
williamr@4
   194
williamr@4
   195
		/**
williamr@4
   196
		The internal block size of the hash in bits
williamr@4
   197
		*/
williamr@4
   198
		TUint iBlockSize;
williamr@4
   199
williamr@4
   200
		/**
williamr@4
   201
		the output size of the hash in bits
williamr@4
   202
		*/
williamr@4
   203
		TUint iOutputSize;
williamr@4
   204
		
williamr@4
   205
		/**
williamr@4
   206
		The list of supported Operation modes
williamr@4
   207
		*/
williamr@4
   208
		const TInt32* iSupportedOperationModes;
williamr@4
   209
williamr@4
   210
		/**
williamr@4
   211
		Number of the supported Operation mode
williamr@4
   212
		*/
williamr@4
   213
		TUint iOperationModeNum;
williamr@4
   214
		};
williamr@4
   215
williamr@4
   216
	/**
williamr@4
   217
	Random Characteristics
williamr@4
   218
	*/	
williamr@4
   219
	class TRandomCharacteristics
williamr@4
   220
		{
williamr@4
   221
	public:
williamr@4
   222
		/**
williamr@4
   223
		 * @internalComponent
williamr@4
   224
		 * 
williamr@4
   225
		 * Externalises random characteristics to a write stream.
williamr@4
   226
		 *
williamr@4
   227
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   228
		 **/
williamr@4
   229
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   230
	public:
williamr@4
   231
		/**
williamr@4
   232
		Common characteristics
williamr@4
   233
		*/	
williamr@4
   234
		TCommonCharacteristics cmn;
williamr@4
   235
		
williamr@4
   236
		/**
williamr@4
   237
		The bit map of blocking non-blocking mode
williamr@4
   238
		*/
williamr@4
   239
		TUint iBlockingMode;
williamr@4
   240
		};
williamr@4
   241
williamr@4
   242
williamr@4
   243
	/**
williamr@4
   244
	Symmetric Cipher Chararcteristics
williamr@4
   245
	*/	
williamr@4
   246
	class TSymmetricCipherCharacteristics
williamr@4
   247
		{
williamr@4
   248
	public:
williamr@4
   249
		/**
williamr@4
   250
		 * @internalComponent
williamr@4
   251
		 * 
williamr@4
   252
		 * Externalises symmetric cipher characteristics to a write stream.
williamr@4
   253
		 *
williamr@4
   254
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   255
		 **/	
williamr@4
   256
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   257
		
williamr@4
   258
		/**
williamr@4
   259
		Determines whether an operation mode (e.g. CBC) is supported by the plug-in 
williamr@4
   260
		by searching through iSupportedOperationModes for the UID value corresponding
williamr@4
   261
		to the aOperationMode parameter.
williamr@4
   262
		@param aOperationMode	The UID of the operation mode to test
williamr@4
   263
		@return ETrue if the operation mode is supported; otherwise, EFalse is returned.
williamr@4
   264
		*/
williamr@4
   265
		IMPORT_C TBool IsOperationModeSupported(TUid aOperationMode) const;
williamr@4
   266
		
williamr@4
   267
		/**
williamr@4
   268
		Determines whether a padding mode (e.g. PKCS7) is supported by the plug-in 
williamr@4
   269
		by searching through iSupportedPaddingModes for the UID value corresponding
williamr@4
   270
		to the aPaddingMode parameter.
williamr@4
   271
		@param aPaddingMode	The UID of the padding mode to test.
williamr@4
   272
		@return ETrue if the padding mode is supported; otherwise, EFalse is returned.
williamr@4
   273
		*/
williamr@4
   274
		IMPORT_C TBool IsPaddingModeSupported(TUid aPaddingMode) const;
williamr@4
   275
	
williamr@4
   276
	public:
williamr@4
   277
		/**
williamr@4
   278
		Common characteristics
williamr@4
   279
		*/	
williamr@4
   280
		TCommonCharacteristics cmn;
williamr@4
   281
	
williamr@4
   282
		/**
williamr@4
   283
		The maximum key length in bits
williamr@4
   284
		*/
williamr@4
   285
		TUint iMaximumKeyLength;
williamr@4
   286
williamr@4
   287
		/**
williamr@4
   288
		The block size of the cipher in bits
williamr@4
   289
		*/
williamr@4
   290
		TUint iBlockSize;
williamr@4
   291
williamr@4
   292
		/**
williamr@4
   293
		The list of supported padding modes
williamr@4
   294
		*/
williamr@4
   295
		const TInt32* iSupportedPaddingModes;
williamr@4
   296
		
williamr@4
   297
		/**
williamr@4
   298
		Number of the supported padding mode
williamr@4
   299
		*/
williamr@4
   300
		TUint iPaddingModeNum;		
williamr@4
   301
williamr@4
   302
		/**
williamr@4
   303
		The list of supported Operation modes
williamr@4
   304
		*/
williamr@4
   305
		const TInt32* iSupportedOperationModes;
williamr@4
   306
williamr@4
   307
		/**
williamr@4
   308
		Number of the supported Operation mode
williamr@4
   309
		*/
williamr@4
   310
		TUint iOperationModeNum;
williamr@4
   311
		
williamr@4
   312
		/**
williamr@4
   313
		The supported key mode bit map. e.g. extern key, internal key or both
williamr@4
   314
		*/
williamr@4
   315
		TInt iKeySupportMode;				
williamr@4
   316
		};
williamr@4
   317
williamr@4
   318
	/**
williamr@4
   319
	Asymmetric Cipher Characteristics
williamr@4
   320
	*/	
williamr@4
   321
	class TAsymmetricCipherCharacteristics
williamr@4
   322
		{
williamr@4
   323
	public:
williamr@4
   324
		/**
williamr@4
   325
		 * @internalComponent
williamr@4
   326
		 * 
williamr@4
   327
		 * Externalises asymmetric cipher characteristics to a write stream.
williamr@4
   328
		 *
williamr@4
   329
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   330
		 **/
williamr@4
   331
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   332
		
williamr@4
   333
		/**
williamr@4
   334
		Determines whether a padding mode (e.g. PKCS7) is supported by the plug-in 
williamr@4
   335
		by searching through iSupportedPaddingModes for the UID value corresponding
williamr@4
   336
		to the aPaddingMode parameter.
williamr@4
   337
		@param aPaddingMode	The UID of the padding mode to test.
williamr@4
   338
		@return ETrue if the padding mode is supported; otherwise, EFalse is returned.
williamr@4
   339
		*/
williamr@4
   340
		IMPORT_C TBool IsPaddingModeSupported(TUid aPaddingMode) const;
williamr@4
   341
		
williamr@4
   342
	public:
williamr@4
   343
		/**
williamr@4
   344
		Common characteristics
williamr@4
   345
		*/	
williamr@4
   346
		TCommonCharacteristics cmn;
williamr@4
   347
		/**
williamr@4
   348
		The maximum key length in bits
williamr@4
   349
		*/
williamr@4
   350
		TUint iMaximumKeyLength;
williamr@4
   351
	
williamr@4
   352
		/**
williamr@4
   353
		The list of supported padding modes
williamr@4
   354
		*/
williamr@4
   355
		const TInt32* iSupportedPaddingModes;
williamr@4
   356
		
williamr@4
   357
		/**
williamr@4
   358
		Number of the supported padding mode
williamr@4
   359
		*/
williamr@4
   360
		TInt iPaddingModeNum;
williamr@4
   361
		
williamr@4
   362
		/**
williamr@4
   363
		The supported key mode bit map. e.g. extern key, internal key or both
williamr@4
   364
		*/
williamr@4
   365
		TInt iKeySupportMode;		
williamr@4
   366
		};
williamr@4
   367
williamr@4
   368
	/**
williamr@4
   369
	Signature Characteristics
williamr@4
   370
	*/	
williamr@4
   371
	class TAsymmetricSignatureCharacteristics
williamr@4
   372
		{
williamr@4
   373
	public:
williamr@4
   374
		/**
williamr@4
   375
		 * @internalComponent
williamr@4
   376
		 *
williamr@4
   377
		 * Externalises signature characteristics to a write stream.
williamr@4
   378
		 *
williamr@4
   379
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   380
		 **/
williamr@4
   381
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   382
		
williamr@4
   383
		/**
williamr@4
   384
		Determines whether a padding mode (e.g. PKCS7) is supported by the plug-in 
williamr@4
   385
		by searching through iSupportedPaddingModes for the UID value corresponding
williamr@4
   386
		to the aPaddingMode parameter.
williamr@4
   387
		@param aPaddingMode	The UID of the padding mode to test.
williamr@4
   388
		@return ETrue if the padding mode is supported; otherwise, EFalse is returned.
williamr@4
   389
		*/
williamr@4
   390
		IMPORT_C TBool IsPaddingModeSupported(TUid aPaddingMode) const;
williamr@4
   391
		
williamr@4
   392
	public:
williamr@4
   393
		/**
williamr@4
   394
		Common characteristics
williamr@4
   395
		*/	
williamr@4
   396
		TCommonCharacteristics cmn;
williamr@4
   397
williamr@4
   398
		/**
williamr@4
   399
		The maximum key length in bits
williamr@4
   400
		*/
williamr@4
   401
		TUint iMaximumKeyLength;
williamr@4
   402
	
williamr@4
   403
		/**
williamr@4
   404
		The list of supported padding modes
williamr@4
   405
		*/
williamr@4
   406
		const TInt32* iSupportedPaddingModes;
williamr@4
   407
		
williamr@4
   408
		/**
williamr@4
   409
		Number of the supported padding mode
williamr@4
   410
		*/
williamr@4
   411
		TInt iPaddingModeNum;
williamr@4
   412
	
williamr@4
   413
		/**
williamr@4
   414
		The supported key mode bit map. e.g. extern key, internal key or both
williamr@4
   415
		*/
williamr@4
   416
		TInt iKeySupportMode;		
williamr@4
   417
		};
williamr@4
   418
williamr@4
   419
williamr@4
   420
	/**
williamr@4
   421
	Key Agreement Characteristics
williamr@4
   422
	*/	
williamr@4
   423
	class TKeyAgreementCharacteristics
williamr@4
   424
		{
williamr@4
   425
	public:
williamr@4
   426
		/**
williamr@4
   427
		 * @internalComponent
williamr@4
   428
		 * 
williamr@4
   429
		 * Externalises key agreement characteristics to a write stream.
williamr@4
   430
		 *
williamr@4
   431
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   432
		 **/	
williamr@4
   433
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   434
		
williamr@4
   435
	public:
williamr@4
   436
		/**
williamr@4
   437
		Common characteristics
williamr@4
   438
		*/	
williamr@4
   439
		TCommonCharacteristics cmn;
williamr@4
   440
		};
williamr@4
   441
		
williamr@4
   442
	/**
williamr@4
   443
	Asymmetric Keypair Generator Characteristics
williamr@4
   444
	*/	
williamr@4
   445
	class TAsymmetricKeypairGeneratorCharacteristics 
williamr@4
   446
		{
williamr@4
   447
	public:
williamr@4
   448
		/**
williamr@4
   449
		 * @internalComponent
williamr@4
   450
		 * 
williamr@4
   451
		 * Externalises key pair generator characteristics to a write stream.
williamr@4
   452
		 *
williamr@4
   453
		 * @param aStream	Stream to which the object should be externalised.
williamr@4
   454
		 **/
williamr@4
   455
		void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   456
		
williamr@4
   457
	public:
williamr@4
   458
		/**
williamr@4
   459
		Common characteristics
williamr@4
   460
		*/	
williamr@4
   461
		TCommonCharacteristics cmn;
williamr@4
   462
williamr@4
   463
		/**
williamr@4
   464
		The maximum key length that may be generarted in bits
williamr@4
   465
		*/
williamr@4
   466
		TUint iMaximumKeyLength;		
williamr@4
   467
		};
williamr@4
   468
williamr@4
   469
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT		
williamr@4
   470
	/**
williamr@4
   471
	 * Mac Characteristics
williamr@4
   472
	 */	
williamr@4
   473
	class TMacCharacteristics
williamr@4
   474
		{
williamr@4
   475
	public:
williamr@4
   476
		/**
williamr@4
   477
		 * @internalComponent
williamr@4
   478
		 * 
williamr@4
   479
		 * Externalises hash characteristics to a write stream.
williamr@4
   480
		 *
williamr@4
   481
		 * @param aStream Stream to which the object should be externalised.
williamr@4
   482
		 */	
williamr@4
   483
	    void ExternalizeL(RWriteStream& aStream) const;
williamr@4
   484
			
williamr@4
   485
	public:
williamr@4
   486
	
williamr@4
   487
		/**
williamr@4
   488
		 * Common Characteristics
williamr@4
   489
		 */
williamr@4
   490
		TCommonCharacteristics iMacChar;  
williamr@4
   491
			
williamr@4
   492
		/**
williamr@4
   493
		 * Mac Mode Type UID will be used to select the plug-in implementations. 
williamr@4
   494
		 * The mode can be either hash or symmetric cipher based. 
williamr@4
   495
		 */
williamr@4
   496
		TInt32 iMacMode;
williamr@4
   497
williamr@4
   498
		/**
williamr@4
   499
		 * The following pointers are mutually exclusive in their usage and anytime 
williamr@4
   500
		 * only one will be initialised depending upon the Mac mode type the plug-in
williamr@4
   501
         * supports, those not supported will be NULL.               
williamr@4
   502
         */    
williamr@4
   503
williamr@4
   504
		/**
williamr@4
   505
		 * Initialised if 'iMacMode' is Hash based otherwise will be NULL.
williamr@4
   506
		 */
williamr@4
   507
		const THashCharacteristics* iHashAlgorithmChar;
williamr@4
   508
		/**
williamr@4
   509
		 * Initialised if 'iMacMode' is Symmetric Cipher based otherwise will be NULL.
williamr@4
   510
		 */
williamr@4
   511
		const TSymmetricCipherCharacteristics* iCipherAlgorithmChar;
williamr@4
   512
		};
williamr@4
   513
#endif	
williamr@4
   514
	}
williamr@4
   515
#endif //__CRYPTOAPI_PLUGINCHARACTERISTICS_H__