os/security/cryptoservices/certificateandkeymgmt/inc/cmsdefs.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 *
    16 */
    17 
    18 
    19 /**
    20  @file
    21  @publishedPartner
    22  @released
    23 */
    24 
    25 #ifndef CMSDEFS_H
    26 #define CMSDEFS_H
    27 
    28 #include <e32base.h>
    29 
    30 /** CMS-1 data */
    31 _LIT(KCmsDataOID, "1.2.840.113549.1.7.1");
    32 
    33 /** CMS-2 SignedData */
    34 _LIT(KCmsSignedDataOID, "1.2.840.113549.1.7.2"); 
    35 
    36 /** CMS-3 EnvelopedData */
    37 _LIT(KCmsEnvelopedDataOID, "1.2.840.113549.1.7.3"); 
    38 
    39 /** CMS-5 DigestedData */
    40 _LIT(KCmsDigestedDataOID, "1.2.840.113549.1.7.5");   
    41 
    42 /** CMS-6 EncryptedData */
    43 _LIT(KCmsEncryptedDataOID, "1.2.840.113549.1.7.6"); 
    44 
    45 /** CMS AuthenticatedData */
    46 _LIT(KCmsAuthenticatedDataOID, "1.2.840.113549.1.9.16.1.2"); 
    47 
    48 
    49 /**
    50 Cms Content Info Types
    51 */
    52 enum TCmsContentInfoType
    53 	{
    54 	/**
    55 	Data Type
    56 	*/
    57 	EContentTypeData = 1,
    58 	/**
    59 	Signed Data Type
    60 	*/
    61 	EContentTypeSignedData =2,
    62 	/**
    63 	Enveloped Data Type
    64 	*/
    65 	EContentTypeEnvelopedData = 3,
    66 	/**
    67 	Digested Data Type
    68 	*/
    69 	EContentTypeDigestedData = 5,
    70 	/**
    71 	Encrypted Data Type
    72 	*/
    73 	EContentTypeEncryptedData =6,	
    74 	/**
    75 	Authenticated Data Type
    76 	*/
    77 	EContentTypeAuthenticatedData =7
    78 	};
    79 
    80 /**
    81 CMS version definition
    82 */	
    83 enum TCmsVersion
    84 	{
    85 	/**
    86 	CMS version 0
    87 	*/
    88 	EVersion_0 = 0,
    89 	/**
    90 	CMS version 1
    91 	*/
    92 	EVersion_1 = 1,
    93 	/**
    94 	CMS version 2
    95 	*/		
    96 	EVersion_2 = 2,
    97 	/**
    98 	CMS version 3
    99 	*/
   100 	EVersion_3 = 3,
   101 	/**
   102 	CMS version 4
   103 	*/		
   104 	EVersion_4 = 4,	
   105 	};
   106 	
   107 
   108 #endif // CMSDEFS_H
   109