sl@0: /* sl@0: * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef CMSDEFS_H sl@0: #define CMSDEFS_H sl@0: sl@0: #include <e32base.h> sl@0: sl@0: /** CMS-1 data */ sl@0: _LIT(KCmsDataOID, "1.2.840.113549.1.7.1"); sl@0: sl@0: /** CMS-2 SignedData */ sl@0: _LIT(KCmsSignedDataOID, "1.2.840.113549.1.7.2"); sl@0: sl@0: /** CMS-3 EnvelopedData */ sl@0: _LIT(KCmsEnvelopedDataOID, "1.2.840.113549.1.7.3"); sl@0: sl@0: /** CMS-5 DigestedData */ sl@0: _LIT(KCmsDigestedDataOID, "1.2.840.113549.1.7.5"); sl@0: sl@0: /** CMS-6 EncryptedData */ sl@0: _LIT(KCmsEncryptedDataOID, "1.2.840.113549.1.7.6"); sl@0: sl@0: /** CMS AuthenticatedData */ sl@0: _LIT(KCmsAuthenticatedDataOID, "1.2.840.113549.1.9.16.1.2"); sl@0: sl@0: sl@0: /** sl@0: Cms Content Info Types sl@0: */ sl@0: enum TCmsContentInfoType sl@0: { sl@0: /** sl@0: Data Type sl@0: */ sl@0: EContentTypeData = 1, sl@0: /** sl@0: Signed Data Type sl@0: */ sl@0: EContentTypeSignedData =2, sl@0: /** sl@0: Enveloped Data Type sl@0: */ sl@0: EContentTypeEnvelopedData = 3, sl@0: /** sl@0: Digested Data Type sl@0: */ sl@0: EContentTypeDigestedData = 5, sl@0: /** sl@0: Encrypted Data Type sl@0: */ sl@0: EContentTypeEncryptedData =6, sl@0: /** sl@0: Authenticated Data Type sl@0: */ sl@0: EContentTypeAuthenticatedData =7 sl@0: }; sl@0: sl@0: /** sl@0: CMS version definition sl@0: */ sl@0: enum TCmsVersion sl@0: { sl@0: /** sl@0: CMS version 0 sl@0: */ sl@0: EVersion_0 = 0, sl@0: /** sl@0: CMS version 1 sl@0: */ sl@0: EVersion_1 = 1, sl@0: /** sl@0: CMS version 2 sl@0: */ sl@0: EVersion_2 = 2, sl@0: /** sl@0: CMS version 3 sl@0: */ sl@0: EVersion_3 = 3, sl@0: /** sl@0: CMS version 4 sl@0: */ sl@0: EVersion_4 = 4, sl@0: }; sl@0: sl@0: sl@0: #endif // CMSDEFS_H sl@0: