1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include <rtl/ustring.hxx>
23 inline constexpr OUStringLiteral MANIFEST_NSPREFIX
= u
"manifest:";
24 inline constexpr OUStringLiteral ELEMENT_MANIFEST
= u
"manifest:manifest";
25 inline constexpr OUStringLiteral ATTRIBUTE_XMLNS
= u
"xmlns:manifest";
26 inline constexpr OUStringLiteral ATTRIBUTE_XMLNS_LOEXT
= u
"xmlns:loext";
27 inline constexpr OUStringLiteral MANIFEST_NAMESPACE
= u
"http://openoffice.org/2001/manifest";
28 inline constexpr OUStringLiteral MANIFEST_OASIS_NAMESPACE
= u
"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0";
29 inline constexpr OUStringLiteral MANIFEST_LOEXT_NAMESPACE
= u
"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0";
30 inline constexpr OUStringLiteral MANIFEST_DOCTYPE
= u
"<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">";
32 inline constexpr OUStringLiteral ELEMENT_FILE_ENTRY
= u
"manifest:file-entry";
33 inline constexpr OUStringLiteral ATTRIBUTE_FULL_PATH
= u
"manifest:full-path";
34 inline constexpr OUStringLiteral ATTRIBUTE_VERSION
= u
"manifest:version";
35 inline constexpr OUStringLiteral ATTRIBUTE_MEDIA_TYPE
= u
"manifest:media-type";
36 inline constexpr OUStringLiteral ATTRIBUTE_SIZE
= u
"manifest:size";
37 inline constexpr OUStringLiteral ELEMENT_MANIFEST_KEYINFO
= u
"loext:keyinfo";
38 inline constexpr OUStringLiteral ELEMENT_ENCRYPTED_KEYINFO
= u
"loext:KeyInfo";
39 inline constexpr OUStringLiteral ELEMENT_ENCRYPTEDKEY
= u
"loext:encrypted-key";
40 inline constexpr OUStringLiteral ELEMENT_ENCRYPTIONMETHOD
= u
"loext:encryption-method";
41 inline constexpr OUStringLiteral ELEMENT_PGPDATA
= u
"loext:PGPData";
42 inline constexpr OUStringLiteral ELEMENT_PGPKEYID
= u
"loext:PGPKeyID";
43 inline constexpr OUStringLiteral ELEMENT_PGPKEYPACKET
= u
"loext:PGPKeyPacket";
44 inline constexpr OUStringLiteral ATTRIBUTE_ALGORITHM
= u
"loext:PGPAlgorithm";
45 inline constexpr OUStringLiteral ELEMENT_CIPHERDATA
= u
"loext:CipherData";
46 inline constexpr OUStringLiteral ELEMENT_CIPHERVALUE
= u
"loext:CipherValue";
47 inline constexpr OUStringLiteral ELEMENT_MANIFEST13_KEYINFO
= u
"manifest:keyinfo";
48 inline constexpr OUStringLiteral ELEMENT_ENCRYPTEDKEY13
= u
"manifest:encrypted-key";
49 inline constexpr OUStringLiteral ELEMENT_ENCRYPTIONMETHOD13
= u
"manifest:encryption-method";
50 inline constexpr OUStringLiteral ELEMENT_PGPDATA13
= u
"manifest:PGPData";
51 inline constexpr OUStringLiteral ELEMENT_PGPKEYID13
= u
"manifest:PGPKeyID";
52 inline constexpr OUStringLiteral ELEMENT_PGPKEYPACKET13
= u
"manifest:PGPKeyPacket";
53 inline constexpr OUStringLiteral ATTRIBUTE_ALGORITHM13
= u
"manifest:PGPAlgorithm";
54 inline constexpr OUStringLiteral ELEMENT_CIPHERDATA13
= u
"manifest:CipherData";
55 inline constexpr OUStringLiteral ELEMENT_CIPHERVALUE13
= u
"manifest:CipherValue";
57 inline constexpr OUStringLiteral ELEMENT_ENCRYPTION_DATA
= u
"manifest:encryption-data";
58 inline constexpr OUStringLiteral ATTRIBUTE_CHECKSUM_TYPE
= u
"manifest:checksum-type";
59 inline constexpr OUStringLiteral ATTRIBUTE_CHECKSUM
= u
"manifest:checksum";
61 inline constexpr OUStringLiteral ELEMENT_ALGORITHM
= u
"manifest:algorithm";
62 inline constexpr OUStringLiteral ATTRIBUTE_ALGORITHM_NAME
= u
"manifest:algorithm-name";
63 inline constexpr OUStringLiteral ATTRIBUTE_INITIALISATION_VECTOR
= u
"manifest:initialisation-vector";
65 inline constexpr OUStringLiteral ELEMENT_START_KEY_GENERATION
= u
"manifest:start-key-generation";
66 inline constexpr OUStringLiteral ATTRIBUTE_START_KEY_GENERATION_NAME
= u
"manifest:start-key-generation-name";
67 inline constexpr OUStringLiteral ATTRIBUTE_KEY_SIZE
= u
"manifest:key-size";
69 inline constexpr OUStringLiteral ELEMENT_KEY_DERIVATION
= u
"manifest:key-derivation";
70 inline constexpr OUStringLiteral ATTRIBUTE_KEY_DERIVATION_NAME
= u
"manifest:key-derivation-name";
71 inline constexpr OUStringLiteral ATTRIBUTE_SALT
= u
"manifest:salt";
72 inline constexpr OUStringLiteral ATTRIBUTE_ITERATION_COUNT
= u
"manifest:iteration-count";
74 /// OFFICE-3708: wrong URL cited in ODF 1.2 and used since OOo 3.4 beta
75 inline constexpr OUStringLiteral SHA256_URL_ODF12
= u
"http://www.w3.org/2000/09/xmldsig#sha256";
76 inline constexpr OUStringLiteral SHA256_URL
= u
"http://www.w3.org/2001/04/xmlenc#sha256";
77 inline constexpr OUStringLiteral SHA1_NAME
= u
"SHA1";
78 inline constexpr OUStringLiteral SHA1_URL
= u
"http://www.w3.org/2000/09/xmldsig#sha1";
80 inline constexpr OUStringLiteral SHA1_1K_NAME
= u
"SHA1/1K";
81 inline constexpr OUStringLiteral SHA1_1K_URL
= u
"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k";
82 inline constexpr OUStringLiteral SHA256_1K_URL
= u
"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k";
84 inline constexpr OUStringLiteral BLOWFISH_NAME
= u
"Blowfish CFB";
85 inline constexpr OUStringLiteral BLOWFISH_URL
= u
"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish";
86 inline constexpr OUStringLiteral AES128_URL
= u
"http://www.w3.org/2001/04/xmlenc#aes128-cbc";
87 inline constexpr OUStringLiteral AES192_URL
= u
"http://www.w3.org/2001/04/xmlenc#aes192-cbc";
88 inline constexpr OUStringLiteral AES256_URL
= u
"http://www.w3.org/2001/04/xmlenc#aes256-cbc";
90 inline constexpr OUStringLiteral PBKDF2_NAME
= u
"PBKDF2";
91 inline constexpr OUStringLiteral PGP_NAME
= u
"PGP";
92 inline constexpr OUStringLiteral PBKDF2_URL
= u
"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2";
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */