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