Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / package / source / manifest / ManifestDefines.hxx
blob44c0cb4c525402e6fb56e848d8f7fe515baaf6de
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_PACKAGE_SOURCE_MANIFEST_MANIFESTDEFINES_HXX
20 #define INCLUDED_PACKAGE_SOURCE_MANIFEST_MANIFESTDEFINES_HXX
22 #include <PackageConstants.hxx>
24 #define MANIFEST_NSPREFIX "manifest:"
25 #define ELEMENT_MANIFEST "manifest:manifest"
26 #define ATTRIBUTE_XMLNS "xmlns:manifest"
27 #define ATTRIBUTE_XMLNS_LOEXT "xmlns:loext"
28 #define MANIFEST_NAMESPACE "http://openoffice.org/2001/manifest"
29 #define MANIFEST_OASIS_NAMESPACE "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"
30 #define MANIFEST_LOEXT_NAMESPACE "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
31 #define MANIFEST_DOCTYPE "<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">"
32 #define ATTRIBUTE_CDATA "CDATA"
34 #define ELEMENT_FILE_ENTRY "manifest:file-entry"
35 #define ATTRIBUTE_FULL_PATH "manifest:full-path"
36 #define ATTRIBUTE_VERSION "manifest:version"
37 #define ATTRIBUTE_MEDIA_TYPE "manifest:media-type"
38 #define ATTRIBUTE_SIZE "manifest:size"
39 #define ELEMENT_MANIFEST_KEYINFO "loext:keyinfo"
40 #define ELEMENT_ENCRYPTED_KEYINFO "loext:KeyInfo"
41 #define ELEMENT_ENCRYPTEDKEY "loext:encrypted-key"
42 #define ELEMENT_ENCRYPTIONMETHOD "loext:encryption-method"
43 #define ELEMENT_PGPDATA "loext:PGPData"
44 #define ELEMENT_PGPKEYID "loext:PGPKeyID"
45 #define ELEMENT_PGPKEYPACKET "loext:PGPKeyPacket"
46 #define ATTRIBUTE_ALGORITHM "loext:PGPAlgorithm"
47 #define ELEMENT_CIPHERDATA "loext:CipherData"
48 #define ELEMENT_CIPHERVALUE "loext:CipherValue"
49 #define ELEMENT_MANIFEST13_KEYINFO "manifest:keyinfo"
50 #define ELEMENT_ENCRYPTEDKEY13 "manifest:encrypted-key"
51 #define ELEMENT_ENCRYPTIONMETHOD13 "manifest:encryption-method"
52 #define ELEMENT_PGPDATA13 "manifest:PGPData"
53 #define ELEMENT_PGPKEYID13 "manifest:PGPKeyID"
54 #define ELEMENT_PGPKEYPACKET13 "manifest:PGPKeyPacket"
55 #define ATTRIBUTE_ALGORITHM13 "manifest:PGPAlgorithm"
56 #define ELEMENT_CIPHERDATA13 "manifest:CipherData"
57 #define ELEMENT_CIPHERVALUE13 "manifest:CipherValue"
59 #define ELEMENT_ENCRYPTION_DATA "manifest:encryption-data"
60 #define ATTRIBUTE_CHECKSUM_TYPE "manifest:checksum-type"
61 #define ATTRIBUTE_CHECKSUM "manifest:checksum"
63 #define ELEMENT_ALGORITHM "manifest:algorithm"
64 #define ATTRIBUTE_ALGORITHM_NAME "manifest:algorithm-name"
65 #define ATTRIBUTE_INITIALISATION_VECTOR "manifest:initialisation-vector"
67 #define ELEMENT_START_KEY_GENERATION "manifest:start-key-generation"
68 #define ATTRIBUTE_START_KEY_GENERATION_NAME "manifest:start-key-generation-name"
69 #define ATTRIBUTE_KEY_SIZE "manifest:key-size"
71 #define ELEMENT_KEY_DERIVATION "manifest:key-derivation"
72 #define ATTRIBUTE_KEY_DERIVATION_NAME "manifest:key-derivation-name"
73 #define ATTRIBUTE_SALT "manifest:salt"
74 #define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count"
76 /// OFFICE-3708: wrong URL cited in ODF 1.2 and used since OOo 3.4 beta
77 #define SHA256_URL_ODF12 "http://www.w3.org/2000/09/xmldsig#sha256"
78 #define SHA256_URL "http://www.w3.org/2001/04/xmlenc#sha256"
79 #define SHA1_NAME "SHA1"
80 #define SHA1_URL "http://www.w3.org/2000/09/xmldsig#sha1"
82 #define SHA1_1K_NAME "SHA1/1K"
83 #define SHA1_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k"
84 #define SHA256_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k"
86 #define BLOWFISH_NAME "Blowfish CFB"
87 #define BLOWFISH_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish"
88 #define AES128_URL "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
89 #define AES192_URL "http://www.w3.org/2001/04/xmlenc#aes192-cbc"
90 #define AES256_URL "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
92 #define PBKDF2_NAME "PBKDF2"
93 #define PGP_NAME "PGP"
94 #define PBKDF2_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2"
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */