1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 * This file is part of the LibreOffice project. 4 * 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/. 8 * 9 * This file incorporates work covered by the following license notice: 10 * 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 . 18 */ 19 #ifndef INCLUDED_PACKAGE_SOURCE_MANIFEST_MANIFESTDEFINES_HXX 20 #define INCLUDED_PACKAGE_SOURCE_MANIFEST_MANIFESTDEFINES_HXX 21 22 #include <PackageConstants.hxx> 23 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" 33 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 50 #define ELEMENT_ENCRYPTION_DATA "manifest:encryption-data" 51 #define ATTRIBUTE_CHECKSUM_TYPE "manifest:checksum-type" 52 #define ATTRIBUTE_CHECKSUM "manifest:checksum" 53 54 #define ELEMENT_ALGORITHM "manifest:algorithm" 55 #define ATTRIBUTE_ALGORITHM_NAME "manifest:algorithm-name" 56 #define ATTRIBUTE_INITIALISATION_VECTOR "manifest:initialisation-vector" 57 58 #define ELEMENT_START_KEY_GENERATION "manifest:start-key-generation" 59 #define ATTRIBUTE_START_KEY_GENERATION_NAME "manifest:start-key-generation-name" 60 #define ATTRIBUTE_KEY_SIZE "manifest:key-size" 61 62 #define ELEMENT_KEY_DERIVATION "manifest:key-derivation" 63 #define ATTRIBUTE_KEY_DERIVATION_NAME "manifest:key-derivation-name" 64 #define ATTRIBUTE_SALT "manifest:salt" 65 #define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count" 66 67 /// OFFICE-3708: wrong URL cited in ODF 1.2 and used since OOo 3.4 beta 68 #define SHA256_URL_ODF12 "http://www.w3.org/2000/09/xmldsig#sha256" 69 #define SHA256_URL "http://www.w3.org/2001/04/xmlenc#sha256" 70 #define SHA1_NAME "SHA1" 71 #define SHA1_URL "http://www.w3.org/2000/09/xmldsig#sha1" 72 73 #define SHA1_1K_NAME "SHA1/1K" 74 #define SHA1_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k" 75 #define SHA256_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k" 76 77 #define BLOWFISH_NAME "Blowfish CFB" 78 #define BLOWFISH_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish" 79 #define AES128_URL "http://www.w3.org/2001/04/xmlenc#aes128-cbc" 80 #define AES192_URL "http://www.w3.org/2001/04/xmlenc#aes192-cbc" 81 #define AES256_URL "http://www.w3.org/2001/04/xmlenc#aes256-cbc" 82 83 #define PBKDF2_NAME "PBKDF2" 84 #define PGP_NAME "PGP" 85 #define PBKDF2_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2" 86 87 #endif 88 89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 90
