xref: /AOO41X/main/package/source/manifest/ManifestDefines.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _MANIFEST_DEFINES_HXX
28*cdf0e10cSrcweir #define _MANIFEST_DEFINES_HXX
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #include <PackageConstants.hxx>
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir #define MANIFEST_NSPREFIX "manifest:"
33*cdf0e10cSrcweir #define ELEMENT_MANIFEST "manifest:manifest"
34*cdf0e10cSrcweir #define ATTRIBUTE_XMLNS "xmlns:manifest"
35*cdf0e10cSrcweir #define MANIFEST_NAMESPACE "http://openoffice.org/2001/manifest"
36*cdf0e10cSrcweir #define MANIFEST_OASIS_NAMESPACE "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"
37*cdf0e10cSrcweir #define MANIFEST_DOCTYPE "<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">"
38*cdf0e10cSrcweir #define ATTRIBUTE_CDATA "CDATA"
39*cdf0e10cSrcweir 
40*cdf0e10cSrcweir #define ELEMENT_FILE_ENTRY "manifest:file-entry"
41*cdf0e10cSrcweir #define ATTRIBUTE_FULL_PATH "manifest:full-path"
42*cdf0e10cSrcweir #define ATTRIBUTE_VERSION "manifest:version"
43*cdf0e10cSrcweir #define ATTRIBUTE_MEDIA_TYPE "manifest:media-type"
44*cdf0e10cSrcweir #define ATTRIBUTE_SIZE "manifest:size"
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir #define ELEMENT_ENCRYPTION_DATA "manifest:encryption-data"
47*cdf0e10cSrcweir #define ATTRIBUTE_CHECKSUM_TYPE "manifest:checksum-type"
48*cdf0e10cSrcweir #define ATTRIBUTE_CHECKSUM "manifest:checksum"
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir #define ELEMENT_ALGORITHM "manifest:algorithm"
51*cdf0e10cSrcweir #define ATTRIBUTE_ALGORITHM_NAME "manifest:algorithm-name"
52*cdf0e10cSrcweir #define ATTRIBUTE_INITIALISATION_VECTOR "manifest:initialisation-vector"
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir #define ELEMENT_START_KEY_GENERATION "manifest:start-key-generation"
55*cdf0e10cSrcweir #define ATTRIBUTE_START_KEY_GENERATION_NAME "manifest:start-key-generation-name"
56*cdf0e10cSrcweir #define ATTRIBUTE_KEY_SIZE "manifest:key-size"
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir #define ELEMENT_KEY_DERIVATION "manifest:key-derivation"
59*cdf0e10cSrcweir #define ATTRIBUTE_KEY_DERIVATION_NAME "manifest:key-derivation-name"
60*cdf0e10cSrcweir #define ATTRIBUTE_SALT "manifest:salt"
61*cdf0e10cSrcweir #define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count"
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir #define SHA256_URL "http://www.w3.org/2000/09/xmldsig#sha256"
64*cdf0e10cSrcweir #define SHA1_NAME "SHA1"
65*cdf0e10cSrcweir #define SHA1_URL "http://www.w3.org/2000/09/xmldsig#sha1"
66*cdf0e10cSrcweir 
67*cdf0e10cSrcweir #define SHA1_1K_NAME "SHA1/1K"
68*cdf0e10cSrcweir #define SHA1_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k"
69*cdf0e10cSrcweir #define SHA256_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k"
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir #define BLOWFISH_NAME "Blowfish CFB"
72*cdf0e10cSrcweir #define BLOWFISH_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish"
73*cdf0e10cSrcweir #define AES128_URL "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
74*cdf0e10cSrcweir #define AES192_URL "http://www.w3.org/2001/04/xmlenc#aes192-cbc"
75*cdf0e10cSrcweir #define AES256_URL "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir #define PBKDF2_NAME "PBKDF2"
78*cdf0e10cSrcweir #define PBKDF2_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2"
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir #endif
81