1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _MANIFEST_DEFINES_HXX 24 #define _MANIFEST_DEFINES_HXX 25 26 #include <PackageConstants.hxx> 27 28 #define MANIFEST_NSPREFIX "manifest:" 29 #define ELEMENT_MANIFEST "manifest:manifest" 30 #define ATTRIBUTE_XMLNS "xmlns:manifest" 31 #define MANIFEST_NAMESPACE "http://openoffice.org/2001/manifest" 32 #define MANIFEST_OASIS_NAMESPACE "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" 33 #define MANIFEST_DOCTYPE "<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">" 34 #define ATTRIBUTE_CDATA "CDATA" 35 36 #define ELEMENT_FILE_ENTRY "manifest:file-entry" 37 #define ATTRIBUTE_FULL_PATH "manifest:full-path" 38 #define ATTRIBUTE_VERSION "manifest:version" 39 #define ATTRIBUTE_MEDIA_TYPE "manifest:media-type" 40 #define ATTRIBUTE_SIZE "manifest:size" 41 42 #define ELEMENT_ENCRYPTION_DATA "manifest:encryption-data" 43 #define ATTRIBUTE_CHECKSUM_TYPE "manifest:checksum-type" 44 #define ATTRIBUTE_CHECKSUM "manifest:checksum" 45 46 #define ELEMENT_ALGORITHM "manifest:algorithm" 47 #define ATTRIBUTE_ALGORITHM_NAME "manifest:algorithm-name" 48 #define ATTRIBUTE_INITIALISATION_VECTOR "manifest:initialisation-vector" 49 50 #define ELEMENT_START_KEY_GENERATION "manifest:start-key-generation" 51 #define ATTRIBUTE_START_KEY_GENERATION_NAME "manifest:start-key-generation-name" 52 #define ATTRIBUTE_KEY_SIZE "manifest:key-size" 53 54 #define ELEMENT_KEY_DERIVATION "manifest:key-derivation" 55 #define ATTRIBUTE_KEY_DERIVATION_NAME "manifest:key-derivation-name" 56 #define ATTRIBUTE_SALT "manifest:salt" 57 #define ATTRIBUTE_ITERATION_COUNT "manifest:iteration-count" 58 59 #define SHA256_URL "http://www.w3.org/2000/09/xmldsig#sha256" 60 #define SHA1_NAME "SHA1" 61 #define SHA1_URL "http://www.w3.org/2000/09/xmldsig#sha1" 62 63 #define SHA1_1K_NAME "SHA1/1K" 64 #define SHA1_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k" 65 #define SHA256_1K_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k" 66 67 #define BLOWFISH_NAME "Blowfish CFB" 68 #define BLOWFISH_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish" 69 #define AES128_URL "http://www.w3.org/2001/04/xmlenc#aes128-cbc" 70 #define AES192_URL "http://www.w3.org/2001/04/xmlenc#aes192-cbc" 71 #define AES256_URL "http://www.w3.org/2001/04/xmlenc#aes256-cbc" 72 73 #define PBKDF2_NAME "PBKDF2" 74 #define PBKDF2_URL "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2" 75 76 #endif 77