1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ManifestDefines.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _MANIFEST_DEFINES_HXX
31 #define _MANIFEST_DEFINES_HXX
33 #include <PackageConstants.hxx>
35 #define MANIFEST_NSPREFIX "manifest:"
36 #define ELEMENT_MANIFEST "manifest:manifest"
37 #define ATTRIBUTE_XMLNS "xmlns:manifest"
38 #define MANIFEST_NAMESPACE "http://openoffice.org/2001/manifest"
39 #define MANIFEST_OASIS_NAMESPACE "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"
40 #define MANIFEST_DOCTYPE "<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">"
41 #define ATTRIBUTE_CDATA "CDATA"
43 #define ELEMENT_FILE_ENTRY "manifest:file-entry"
44 #define ATTRIBUTE_FULL_PATH "manifest:full-path"
45 #define ATTRIBUTE_VERSION "manifest:version"
46 #define ATTRIBUTE_MEDIA_TYPE "manifest:media-type"
47 #define ATTRIBUTE_SIZE "manifest:size"
49 #define ELEMENT_ENCRYPTION_DATA "manifest:encryption-data"
50 #define ATTRIBUTE_CHECKSUM_TYPE "manifest:checksum-type"
51 #define ATTRIBUTE_CHECKSUM "manifest:checksum"
53 #define ELEMENT_ALGORITHM "manifest:algorithm"
54 #define ATTRIBUTE_ALGORITHM_NAME "manifest:algorithm-name"
55 #define ATTRIBUTE_INITIALISATION_VECTOR "manifest:initialisation-vector"
57 #define ELEMENT_START_KEY_GENERATION "manifest:start-key-generation"
58 #define ATTRIBUTE_START_KEY_GENERATION_NAME "manifest:start-key-generation-name"
59 #define ALGORITHM_SHA1 "SHA1"
60 #define ATTRIBUTE_KEY_SIZE "manifest:key-size"
61 #define START_KEY_SIZE "20"
63 #define ELEMENT_KEY_DERIVATION "manifest:key-derivation"
64 #define ATTRIBUTE_KEY_DERIVATION_NAME "manifest:key-derivation-name"
65 #define ATTRIBUTE_SALT "manifest:salt"
66 #define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count"
67 #define CHECKSUM_TYPE "SHA1/1K"
68 #define DERIVED_KEY_SIZE "16"