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