crypto/weakcryptospi/inc/spi/cryptospidef.h
changeset 8 35751d3474b7
child 15 da2ae96f639b
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * crypto spi data definition
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedPartner
       
    23  @released
       
    24 */
       
    25  
       
    26 #ifndef __CRYPTOAPI_CRYPTOSPIDEF_H__
       
    27 #define __CRYPTOAPI_CRYPTOSPIDEF_H__
       
    28 
       
    29 #include <e32base.h>
       
    30 
       
    31 namespace CryptoSpi
       
    32 	{
       
    33 	/**
       
    34 	Definition of Cryptography interface UID value
       
    35 	*/
       
    36 	const TInt32 KHashInterface = 0x10283161;
       
    37 	const TInt32 KRandomInterface = 0x10283162;
       
    38 	const TInt32 KSymmetricCipherInterface = 0x10283163;
       
    39 	const TInt32 KAsymmetricCipherInterface = 0x10283164;
       
    40 	const TInt32 KSignerInterface = 0x10283165;
       
    41 	const TInt32 KVerifierInterface = 0x10283166;
       
    42 	const TInt32 KKeyAgreementInterface = 0x10283167;
       
    43 	const TInt32 KKeyGeneratorInterface = 0x10283168;
       
    44 	const TInt32 KKeypairGeneratorInterface = 0x10283169;
       
    45 	const TInt32 KAsyncHashInterface = 0x1028316a;
       
    46 	const TInt32 KAsyncRandomInterface = 0x1028316b;
       
    47 	const TInt32 KAsyncSymmetricCipherInterface = 0x1028316c;
       
    48 	const TInt32 KAsyncAsymmetricCipherInterface = 0x1028316d;
       
    49 	const TInt32 KAsyncSignerInterface = 0x1028316e;
       
    50 	const TInt32 KAsyncVerifierInterface = 0x1028316f;
       
    51 	const TInt32 KAsyncKeyAgreementInterface = 0x10283170;
       
    52 	const TInt32 KAsyncKeyGeneratorInterface = 0x10283171;
       
    53 	const TInt32 KAsyncKeypairGeneratorInterface = 0x10283172;
       
    54 
       
    55 
       
    56 /******************************MAC INTERFACE UIDS**********************************/
       
    57 
       
    58 #ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT
       
    59 	/**
       
    60 	 * Mac Interface Uid
       
    61 	 */
       
    62 	const TInt32 KMacInterface = 0x2001ED9A;
       
    63 	/**
       
    64 	 * Asynchronous Mac Interface Uid
       
    65 	 */
       
    66 	const TInt32 KAsyncMacInterface = 0x2001ED9B;
       
    67 	/**
       
    68 	 * Definition of Mac mode Uid value
       
    69 	 */
       
    70 	const TInt32 KSymmetricCipherMode = 0x2001ED9C;
       
    71 	/**
       
    72 	 * Definition of Mac algorithm UID value
       
    73 	 */
       
    74 	const TInt32 KAlgorithmCipherAesXcbcMac96 = 0x2001ED9D; 
       
    75 	const TInt32 KAlgorithmCipherAesXcbcPrf128 = 0x2001ED9E;
       
    76 	/**
       
    77      * Mac algorithm Uids
       
    78 	 */	
       
    79 	const TUid KMacInterfaceUid={KMacInterface};
       
    80 	const TUid KAsyncMacInterfaceUid={KAsyncMacInterface};
       
    81 	const TUid KSymmetricCipherModeUid = {KSymmetricCipherMode};
       
    82 	const TUid KAesXcbcMac96Uid = {KAlgorithmCipherAesXcbcMac96};
       
    83 	const TUid KAesXcbcPrf128Uid = {KAlgorithmCipherAesXcbcPrf128};
       
    84 	
       
    85 #endif
       
    86 	
       
    87 /********************************************************************************/
       
    88 	
       
    89 	
       
    90 	/**
       
    91 	Hash Interface Uid
       
    92 	*/
       
    93 	const TUid KHashInterfaceUid={KHashInterface};
       
    94 
       
    95 	
       
    96 	
       
    97 	/**
       
    98 	Random Interface Uid
       
    99 	*/
       
   100 	const TUid KRandomInterfaceUid={KRandomInterface};
       
   101 
       
   102 	/**
       
   103 	Symmetric Cipher Interface Uid
       
   104 	*/
       
   105 	const TUid KSymmetricCipherInterfaceUid={KSymmetricCipherInterface};
       
   106 
       
   107 	/**
       
   108 	Asymmetric Cipher Interface Uid
       
   109 	*/
       
   110 	const TUid KAsymmetricCipherInterfaceUid={KAsymmetricCipherInterface};
       
   111 
       
   112 	/**
       
   113 	Signer Interface Uid
       
   114 	*/
       
   115 	const TUid KSignerInterfaceUid={KSignerInterface};
       
   116 
       
   117 	/**
       
   118 	Verifier Interface Uid
       
   119 	*/
       
   120 	const TUid KVerifierInterfaceUid={KVerifierInterface};
       
   121 
       
   122 	/**
       
   123 	Key Agreement Interface Uid
       
   124 	*/
       
   125 	const TUid KKeyAgreementInterfaceUid={KKeyAgreementInterface};
       
   126 
       
   127 	/**
       
   128 	Key generator Interface Uid
       
   129 	*/
       
   130 	const TUid KKeyGeneratorInterfaceUid={KKeyGeneratorInterface};
       
   131 
       
   132 	/**
       
   133 	Key generator Interface Uid
       
   134 	*/
       
   135 	const TUid KKeypairGeneratorInterfaceUid={KKeypairGeneratorInterface};
       
   136 
       
   137 	/**
       
   138 	Asynchronous Hash Interface Uid
       
   139 	*/
       
   140 	const TUid KAsyncHashInterfaceUid={KAsyncHashInterface};
       
   141 
       
   142 	/**
       
   143 	Asynchronous Random Interface Uid
       
   144 	*/
       
   145 	const TUid KAsyncRandomInterfaceUid={KAsyncRandomInterface};
       
   146 
       
   147 	/**
       
   148 	Asynchronous Symmetric Cipher Interface Uid
       
   149 	*/
       
   150 	const TUid KAsyncSymmetricCipherInterfaceUid={KAsyncSymmetricCipherInterface};
       
   151 
       
   152 	/**
       
   153 	Asynchronous Asymmetric Cipher Interface Uid
       
   154 	*/
       
   155 	const TUid KAsyncAsymmetricCipherInterfaceUid={KAsyncAsymmetricCipherInterface};
       
   156 
       
   157 	/**
       
   158 	Asynchronous Signer Interface Uid
       
   159 	*/
       
   160 	const TUid KAsyncSignerInterfaceUid={KAsyncSignerInterface};
       
   161 
       
   162 	/**
       
   163 	Asynchronous Verifier Interface Uid
       
   164 	*/
       
   165 	const TUid KAsyncVerifierInterfaceUid={KAsyncVerifierInterface};
       
   166 
       
   167 	/**
       
   168 	Asynchronous Key Agreement Interface Uid
       
   169 	*/
       
   170 	const TUid KAsyncKeyAgreementInterfaceUid={KAsyncKeyAgreementInterface};
       
   171 
       
   172 	/**
       
   173 	Asynchronous Key generator Interface Uid
       
   174 	*/
       
   175 	const TUid KAsyncKeyGeneratorInterfaceUid={KAsyncKeyGeneratorInterface};
       
   176 
       
   177 	/**
       
   178 	Asynchronous Key generator Interface Uid
       
   179 	*/
       
   180 	const TUid KAsyncKeypairGeneratorInterfaceUid={KAsyncKeypairGeneratorInterface};
       
   181 
       
   182 	// Need to initialise directly by element to avoid ARMV5 compiler generating
       
   183 	// an array construction table which causes writable global data to be placed
       
   184 	// in the binary (writable global data is not permitted by the movable memory
       
   185 	// model which e.g., the H2 reference board has to use).
       
   186 	const TUid KInterfacesUids[]=
       
   187 		{
       
   188 		{KHashInterface}, 
       
   189 		{KRandomInterface}, 
       
   190 		{KSymmetricCipherInterface}, 
       
   191 		{KAsymmetricCipherInterface},
       
   192 		{KSignerInterface},
       
   193 		{KVerifierInterface},
       
   194 		{KKeyAgreementInterface},
       
   195 		{KKeyGeneratorInterface},
       
   196 		{KKeypairGeneratorInterface},
       
   197 		{KAsyncHashInterface},
       
   198 		{KAsyncRandomInterface},
       
   199 		{KAsyncSymmetricCipherInterface},
       
   200 		{KAsyncAsymmetricCipherInterface},
       
   201 		{KAsyncSignerInterface},
       
   202 		{KAsyncVerifierInterface},
       
   203 		{KAsyncKeyAgreementInterface},
       
   204 		{KAsyncKeyGeneratorInterface},
       
   205 		{KAsyncKeypairGeneratorInterface},
       
   206 #ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT		
       
   207 		{KMacInterface},
       
   208 		{KAsyncMacInterface},
       
   209 #endif		
       
   210 		};
       
   211 
       
   212 	/**
       
   213 	Definition of Hash algorithm UID value
       
   214 	*/
       
   215 	const TInt32 KAlgorithmHashMd2 = 0x10283173;
       
   216 	const TInt32 KAlgorithmHashMd4 = 0x2000B341;
       
   217 	const TInt32 KAlgorithmHashMd5 = 0x10283174;
       
   218 	const TInt32 KAlgorithmHashSha1 = 0x10283175;
       
   219 	const TInt32 KAlgorithmHashSha224 = 0x2000E258;
       
   220 	const TInt32 KAlgorithmHashSha256 = 0x2000E259;
       
   221 	const TInt32 KAlgorithmHashSha384 = 0x2000E25A;
       
   222 	const TInt32 KAlgorithmHashSha512 = 0x2000E25B;
       
   223 
       
   224 	/**
       
   225 	Md2 algorithm Uid
       
   226 	*/	
       
   227 	const TUid KMd2Uid={KAlgorithmHashMd2};
       
   228 
       
   229 	/**
       
   230 	Md4 algorithm Uid
       
   231 	*/	
       
   232 	const TUid KMd4Uid={KAlgorithmHashMd4};
       
   233 
       
   234 	/**
       
   235 	Md5 algorithm Uid
       
   236 	*/	
       
   237 	const TUid KMd5Uid={KAlgorithmHashMd5};
       
   238 
       
   239 	/**
       
   240 	Sha1 algorithm Uid
       
   241 	*/	
       
   242 	const TUid KSha1Uid={KAlgorithmHashSha1};
       
   243 
       
   244 	/**
       
   245 	Sha224 algorithm Uid
       
   246 	*/	
       
   247 	const TUid KSha224Uid={KAlgorithmHashSha224};
       
   248 	
       
   249 	/**
       
   250 	Sha256 algorithm Uid
       
   251 	*/	
       
   252 	const TUid KSha256Uid={KAlgorithmHashSha256};
       
   253 	
       
   254 	/**
       
   255 	Sha384 algorithm Uid
       
   256 	*/	
       
   257 	const TUid KSha384Uid={KAlgorithmHashSha384};
       
   258 	
       
   259 	/**
       
   260 	Sha512 algorithm Uid
       
   261 	*/	
       
   262 	const TUid KSha512Uid={KAlgorithmHashSha512};
       
   263 
       
   264 	/**
       
   265 	Definition of hash mode Uid value
       
   266 	*/
       
   267 	const TInt32 KHashMode = 0x10283176;
       
   268 	const TInt32 KHmacMode = 0x10283177;
       
   269 		
       
   270 	/**
       
   271 	Hash mode Uid
       
   272 	*/
       
   273 	const TUid KHashModeUid = {KHashMode};
       
   274 
       
   275 	/**
       
   276 	Hmac mode Uid
       
   277 	*/
       
   278 	const TUid KHmacModeUid = {KHmacMode};
       
   279 
       
   280 	/**
       
   281 	Definition of Random algorithm UID value
       
   282 	*/ 
       
   283 	const TInt32 KAlgorithmRandom = 0x10283178;
       
   284 
       
   285 	/**
       
   286 	Random algorithm Uid
       
   287 	*/	
       
   288 	const TUid KRandomUid={KAlgorithmRandom};
       
   289 
       
   290 	/**
       
   291 	Definition of Symmetric Cipher algorithm UID value
       
   292 	*/ 
       
   293 	const TInt32 KAlgorithmCipherDes = 0x10283179;
       
   294 	const TInt32 KAlgorithmCipher3Des = 0x1028317a;
       
   295 	const TInt32 KAlgorithmCipherRc2 = 0x1028317b;
       
   296 	const TInt32 KAlgorithmCipherArc4 = 0x1028317c;
       
   297 	const TInt32 KAlgorithmCipherAes = 0x1028317d;
       
   298 	const TInt32 KAlgorithmCipherMisty1 = 0x102831be;
       
   299 	const TInt32 KAlgorithmCipherMisty2 = 0x102831bf;
       
   300 	const TInt32 KAlgorithmCipherKasumi = 0x102831c0;
       
   301 
       
   302 	/**
       
   303 	Des algorithm Uid
       
   304 	*/
       
   305 	const TUid KDesUid={KAlgorithmCipherDes};
       
   306 
       
   307 	/**
       
   308 	3Des algorithm Uid
       
   309 	*/
       
   310 	const TUid K3DesUid={KAlgorithmCipher3Des};
       
   311 
       
   312 	/**
       
   313 	RC2 algorithm Uid
       
   314 	*/
       
   315 	const TUid KRc2Uid={KAlgorithmCipherRc2};
       
   316 
       
   317 	/**
       
   318 	ARC4 algorithm Uid
       
   319 	*/
       
   320 	const TUid KArc4Uid={KAlgorithmCipherArc4};
       
   321 
       
   322 	/**
       
   323 	AES algorithm Uid
       
   324 	*/
       
   325 	const TUid KAesUid={KAlgorithmCipherAes};
       
   326 
       
   327 	/**
       
   328 	Misty1 (RFC 2294) algorithm Uid
       
   329 	*/
       
   330 	const TUid KMisty1Uid={KAlgorithmCipherMisty1};
       
   331 
       
   332 	/**
       
   333 	Misty2 algorithm Uid
       
   334 	*/
       
   335 	const TUid KMisty2Uid={KAlgorithmCipherMisty2};
       
   336 	
       
   337 	/**
       
   338 	Kasumi algorithm Uid
       
   339 	*/
       
   340 	const TUid KKasumiUid={KAlgorithmCipherKasumi};	
       
   341 
       
   342 	/**
       
   343 	Definition of Asymmetric Cipher algorithm UID value
       
   344 	*/ 
       
   345 	const TInt32 KAlgorithmCipherRsa = 0x1028317e;
       
   346 
       
   347 	/**
       
   348 	Rsa Cipher algorithm Uid
       
   349 	*/
       
   350 	const TUid KRsaCipherUid={KAlgorithmCipherRsa};
       
   351 
       
   352 	/**
       
   353 	Definition of Signer algorithm UID value
       
   354 	*/ 
       
   355 	const TInt32 KAlgorithmSignerRsa = 0x1028317f;
       
   356 	const TInt32 KAlgorithmSignerDsa = 0x10283180;
       
   357 
       
   358 	/**
       
   359 	Rsa Signer algorithm Uid
       
   360 	*/
       
   361 	const TUid KRsaSignerUid={KAlgorithmSignerRsa};
       
   362 
       
   363 	/**
       
   364 	Dsa Signer algorithm Uid
       
   365 	*/
       
   366 	const TUid KDsaSignerUid={KAlgorithmSignerDsa};
       
   367 
       
   368 	/**
       
   369 	Definition of Verifier algorithm UID value
       
   370 	*/
       
   371 	const TInt32 KAlgorithmVerifierRsa = 0x10283181;
       
   372 	const TInt32 KAlgorithmVerifierDsa = 0x10283182;
       
   373 
       
   374 	/**
       
   375 	Rsa Veifier algorithm Uid
       
   376 	*/
       
   377 	const TUid KRsaVerifierUid={KAlgorithmVerifierRsa};
       
   378 
       
   379 	/**
       
   380 	Dsa Signer algorithm Uid
       
   381 	*/
       
   382 	const TUid KDsaVerifierUid={KAlgorithmVerifierDsa};
       
   383 
       
   384 
       
   385 	/**
       
   386 	Definition of Key Agreement algorithm UID value
       
   387 	*/
       
   388 	const TInt32 KAlgorithmKeyAgreementDH = 0x10283183;
       
   389 
       
   390 	/**
       
   391 	DH Agreement algorithm Uid
       
   392 	*/
       
   393 	const TUid KDHAgreementUid={KAlgorithmKeyAgreementDH};
       
   394 
       
   395 	/**
       
   396 	Definition of Key Pair Generator algorithm UID value
       
   397 	*/
       
   398 	const TInt32 KAlgorithmDHKeyPairGenerator = 0x10283184;
       
   399 	const TInt32 KAlgorithmRSAKeyPairGenerator = 0x10283185;
       
   400 	const TInt32 KAlgorithmDSAKeyPairGenerator = 0x10283186;
       
   401 	/**
       
   402 	DH Key Pair Generator Algorithm Uid
       
   403 	*/
       
   404 	const TUid KDHKeyPairGeneratorUid={KAlgorithmDHKeyPairGenerator};
       
   405 
       
   406 	/**
       
   407 	RSA Key Pair Generator Algorithm Uid
       
   408 	*/
       
   409 	const TUid KRSAKeyPairGeneratorUid={KAlgorithmRSAKeyPairGenerator};
       
   410 
       
   411 	/**
       
   412 	DSA Key Pair Generator Algorithm Uid
       
   413 	*/
       
   414 	const TUid KDSAKeyPairGeneratorUid={KAlgorithmDSAKeyPairGenerator};
       
   415 
       
   416 	/**
       
   417 	This fake interface uid is used to allow the sub-class of CPadding
       
   418 	to be determined via Extension_ because true RTTI is not supported.		
       
   419 	*/
       
   420 	const TInt32 KPaddingInterface = 0x10283187;
       
   421 	const TUid KPaddingInterfaceUid = {KPaddingInterface};		
       
   422 
       
   423 	/**
       
   424 	Definition of Padding mode UID value
       
   425 	*/
       
   426 	const TInt32 KPaddingModeNone = 0x10283188;
       
   427 	const TInt32 KPaddingModeSSLv3 = 0x10283189;
       
   428 	const TInt32 KPaddingModePKCS7 = 0x1028318a;
       
   429 	const TInt32 KPaddingModePkcs1_v1_5_Encryption = 0x1028318b;
       
   430 	const TInt32 KPaddingModePkcs1_v1_5_Signature = 0x1028318c;
       
   431 	
       
   432 	/**
       
   433 	Padding Mode None Uid
       
   434 	*/
       
   435 	const TUid KPaddingModeNoneUid = {KPaddingModeNone};
       
   436 	
       
   437 	/**
       
   438 	SSLv3 Padding Mode Uid
       
   439 	*/	
       
   440 	const TUid KPaddingModeSSLv3Uid = {KPaddingModeSSLv3};
       
   441 
       
   442 	/**
       
   443 	PKCS7 Padding Mode Uid
       
   444 	*/		
       
   445 	const TUid KPaddingModePKCS7Uid = {KPaddingModePKCS7};
       
   446 	
       
   447 	/**
       
   448 	Pkcs1 v1.5 Encryption Padding mode Uid
       
   449 	*/
       
   450 	const TUid KPaddingModePkcs1_v1_5_EncryptionUid = {KPaddingModePkcs1_v1_5_Encryption};
       
   451 	
       
   452 	/**
       
   453 	Pkcs1 v1.5 Signature Padding mode Uid
       
   454 	*/	
       
   455 	const TUid KPaddingModePkcs1_v1_5_SignatureUid = {KPaddingModePkcs1_v1_5_Signature};	
       
   456 	
       
   457 	/**
       
   458 	Definition of Cryptography mode UID value
       
   459 	*/
       
   460 	const TInt32 KCryptoModeEncrypt = 0x1028318d;
       
   461 	const TInt32 KCryptoModeDecrypt = 0x1028318e;
       
   462 	const TInt32 KCryptoModeNone = 0x1028318f;
       
   463 	
       
   464 	/**
       
   465 	Crypto Encrypt Mode Uid
       
   466 	*/
       
   467 	const TUid KCryptoModeEncryptUid = {KCryptoModeEncrypt};
       
   468 	
       
   469 	/**
       
   470 	Crypto Decrypt Mode Uid
       
   471 	*/
       
   472 	const TUid KCryptoModeDecryptUid = {KCryptoModeDecrypt};
       
   473 	
       
   474 	/**
       
   475 	Crypto None Mode Uid
       
   476 	*/
       
   477 	const TUid KCryptoModeNoneUid = {KCryptoModeNone};
       
   478 
       
   479 	/**
       
   480 	Definition of Symmetric operation mode Uid value
       
   481 	*/
       
   482 	const TInt32 KOperationModeNone = 0x10283190;
       
   483 	const TInt32 KOperationModeECB = 0x10283191;
       
   484 	const TInt32 KOperationModeCBC = 0x10283192;
       
   485 	const TInt32 KOperationModeOFB = 0x10283193;
       
   486 	const TInt32 KOperationModeCFB = 0x10283194;
       
   487 	const TInt32 KOperationModeCTR = 0x10283195;
       
   488 	
       
   489 	/**
       
   490 	None Mode Uid
       
   491 	*/
       
   492 	const TUid KOperationModeNoneUid = {KOperationModeNone};
       
   493 	
       
   494 	/**
       
   495 	ECB Mode Uid
       
   496 	*/
       
   497 	const TUid KOperationModeECBUid = {KOperationModeECB};
       
   498 	
       
   499 	/**
       
   500 	CBC Mode Uid
       
   501 	*/	
       
   502 	const TUid KOperationModeCBCUid = {KOperationModeCBC};
       
   503 	
       
   504 	/**
       
   505 	OFB Mode Uid
       
   506 	*/	
       
   507 	const TUid KOperationModeOFBUid = {KOperationModeOFB};
       
   508 	
       
   509 	/**
       
   510 	CFB Mode Uid
       
   511 	*/	
       
   512 	const TUid KOperationModeCFBUid = {KOperationModeCFB};
       
   513 	
       
   514 	/**
       
   515 	CTR Mode Uid
       
   516 	*/	
       
   517 	const TUid KOperationModeCTRUid = {KOperationModeCTR};
       
   518 
       
   519  	/**
       
   520  	Definition of the Hmac key parameter Uid value
       
   521  	*/
       
   522  	const TInt32 KHmacKeyParameter = 0x102831ba;	
       
   523  	const TUid KHmacKeyParameterUid={KHmacKeyParameter};
       
   524 
       
   525 	/**
       
   526 	Definition of the Symmetric key parameter Uid value
       
   527 	*/
       
   528 	const TInt32 KSymmetricKeyParameter = 0x10283196;	
       
   529 	const TUid KSymmetricKeyParameterUid={KSymmetricKeyParameter};
       
   530 	
       
   531 	/**
       
   532 	Definition of the Dsa key parameter Uid value
       
   533 	*/	
       
   534 	const TInt32 KDsaKeyParameterP = 0x10283197;
       
   535 	const TInt32 KDsaKeyParameterQ = 0x10283198;
       
   536 	const TInt32 KDsaKeyParameterG = 0x10283199;
       
   537 	const TInt32 KDsaKeyParameterY = 0x1028319a;
       
   538 	const TInt32 KDsaKeyParameterX = 0x1028319b;
       
   539 	const TInt32 KDsaKeyGenerationCounter = 0x1028319c;
       
   540 	const TInt32 KDsaKeyGenerationSeed = 0x1028319d;
       
   541 
       
   542 	const TUid KDsaKeyParameterPUid={KDsaKeyParameterP};
       
   543 	const TUid KDsaKeyParameterQUid={KDsaKeyParameterQ};
       
   544 	const TUid KDsaKeyParameterGUid={KDsaKeyParameterG};
       
   545 	const TUid KDsaKeyParameterYUid={KDsaKeyParameterY};
       
   546 	const TUid KDsaKeyParameterXUid={KDsaKeyParameterX};
       
   547 	const TUid KDsaKeyGenerationCounterUid={KDsaKeyGenerationCounter};
       
   548 	const TUid KDsaKeyGenerationSeedUid={KDsaKeyGenerationSeed};
       
   549 
       
   550 	/**
       
   551 	Definition of the Diffie-Hellman parameter Uid value
       
   552 	*/
       
   553 	const TInt32 KDhKeyParameterN = 0x1028319e;
       
   554 	const TInt32 KDhKeyParameterG = 0x1028319f;
       
   555 	const TInt32 KDhKeyParameterX = 0x102831a0;
       
   556 	const TInt32 KDhKeyParameterx = 0x102831a1;
       
   557 
       
   558 	const TUid KDhKeyParameterNUid = {KDhKeyParameterN};
       
   559 	const TUid KDhKeyParameterGUid = {KDhKeyParameterG};
       
   560 	const TUid KDhKeyParameterXUid = {KDhKeyParameterX};
       
   561 	const TUid KDhKeyParameterxUid = {KDhKeyParameterx};
       
   562 
       
   563 	/**
       
   564 	Definition of the RSA cipher parameter Uid value
       
   565 	*/
       
   566 	const TInt32 KRsaKeyParameterN = 0x102831a2;
       
   567 	const TInt32 KRsaKeyParameterE = 0x102831a3;
       
   568 	const TInt32 KRsaKeyParameterD = 0x102831a4;
       
   569 	const TInt32 KRsaKeyParameterP = 0x102831a5;
       
   570 	const TInt32 KRsaKeyParameterQ = 0x102831a6;
       
   571 	const TInt32 KRsaKeyParameterQInv = 0x102831a7;
       
   572 	const TInt32 KRsaKeyParameterDP = 0x102831a8;
       
   573 	const TInt32 KRsaKeyParameterDQ = 0x102831a9;
       
   574 
       
   575 	const TUid KRsaKeyParameterNUid = {KRsaKeyParameterN};
       
   576 	const TUid KRsaKeyParameterEUid = {KRsaKeyParameterE};
       
   577 	const TUid KRsaKeyParameterDUid = {KRsaKeyParameterD};
       
   578 	const TUid KRsaKeyParameterPUid = {KRsaKeyParameterP};
       
   579 	const TUid KRsaKeyParameterQUid = {KRsaKeyParameterQ};
       
   580 	const TUid KRsaKeyParameterQInvUid = {KRsaKeyParameterQInv};
       
   581 	const TUid KRsaKeyParameterDPUid = {KRsaKeyParameterDP};
       
   582 	const TUid KRsaKeyParameterDQUid = {KRsaKeyParameterDQ};
       
   583 
       
   584 	/**
       
   585 	Definition of the DSA Signature Parameter Uid value
       
   586 	*/
       
   587 	const TInt32 KDsaSignatureParameterR = 0x102831aa;
       
   588 	const TInt32 KDsaSignatureParameterS = 0x102831ab;
       
   589 	
       
   590 	const TUid KDsaSignatureParameterRUid = {KDsaSignatureParameterR};
       
   591 	const TUid KDsaSignatureParameterSUid = {KDsaSignatureParameterS};
       
   592 
       
   593 	/**
       
   594 	Definition of the RSA Signature Parameter Uid value
       
   595 	*/	
       
   596 	const TInt32 KRsaSignatureParameterS = 0x102831ac;
       
   597 	const TUid KRsaSignatureParameterSUid = {KRsaSignatureParameterS};
       
   598 
       
   599 	/**
       
   600 	Definition of the key type uid
       
   601 	*/
       
   602 	const TInt32 KRsaKeyType = 0x102831ad;
       
   603 	const TUid KRsaKeyTypeUid= {KRsaKeyType};
       
   604 
       
   605 	/**
       
   606 	Definition of Symmetric and Asymmetric Key Type Uid value
       
   607 	*/
       
   608 	const TInt32 KHmacKey = 0x102831bb;
       
   609 	const TInt32 KSymmetricKey = 0x102831ae;	
       
   610 	const TInt32 KDsaPublicKey = 0x102831af;
       
   611 	const TInt32 KDsaPrivateKey = 0x102831b0;
       
   612 	const TInt32 KRsaPublicKey = 0x102831b1;
       
   613 	const TInt32 KRsaPrivateKeyStandard = 0x102831b2;
       
   614 	const TInt32 KRsaPrivateKeyCRT = 0x102831b3;
       
   615 	const TInt32 KDHPublicKey = 0x102831b4;
       
   616 	const TInt32 KDHPrivateKey = 0x102831b5;
       
   617 	const TInt32 KDHAgreedKey = 0x102831b6;
       
   618 
       
   619 	const TUid KHmacKeyUid={KHmacKey};
       
   620 	const TUid KSymmetricKeyUid={KSymmetricKey};
       
   621 	const TUid KDsaPublicKeyUid={KDsaPublicKey};
       
   622 	const TUid KDsaPrivateKeyUid={KDsaPrivateKey};
       
   623 	const TUid KRsaPublicKeyUid={KRsaPublicKey};
       
   624 	const TUid KRsaPrivateKeyStandardUid={KRsaPrivateKeyStandard};
       
   625 	const TUid KRsaPrivateKeyCRTUid={KRsaPrivateKeyCRT};
       
   626 	const TUid KDHPublicKeyUid={KDHPublicKey};
       
   627 	const TUid KDHPrivateKeyUid={KDHPrivateKey};
       
   628 	const TUid KDHAgreedKeyUid={KDHAgreedKey};
       
   629 
       
   630 	const TUid KRC2EffectiveKeyLenBits = { 0x102831bc };
       
   631 	const TUid KARC4DiscardBytes = { 0x102831bd };
       
   632 
       
   633 	/**
       
   634 	Definition of Key Attribute value
       
   635 	*/
       
   636 	const TInt32 KNonEmbeddedKey = 0x102831b7;
       
   637 	const TInt32 KExtractableKey = 0x102831b8;
       
   638 	const TInt32 KNonExtractableKey = 0x102831b9;
       
   639 
       
   640 	const TUid KNonEmbeddedKeyUid={KNonEmbeddedKey};
       
   641 	const TUid KExtractableKeyUid={KExtractableKey};
       
   642 	const TUid KNonExtractableKeyUid={KNonExtractableKey};
       
   643 	}
       
   644 
       
   645 
       
   646 #endif //__CRYPTOAPI_CRYPTOSPIDEF_H__