/usr/include/xmltooling/encryption/Encryption.h is in libxmltooling-dev 1.5.3-2+deb8u3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | /**
* Licensed to the University Corporation for Advanced Internet
* Development, Inc. (UCAID) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* UCAID licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/
/**
* @file xmltooling/encryption/Encryption.h
*
* XMLObjects representing XML Encryption content
*/
#if !defined(__xmltooling_encryption_h__) && !defined(XMLTOOLING_NO_XMLSEC)
#define __xmltooling_encryption_h__
#include <xmltooling/ConcreteXMLObjectBuilder.h>
#include <xmltooling/ElementProxy.h>
#include <xmltooling/util/XMLConstants.h>
#include <cstdio>
#include <boost/lexical_cast.hpp>
namespace xmlsignature {
class XMLTOOL_API KeyInfo;
class XMLTOOL_API Transform;
};
/**
* Macro for declaring encryption builders.
*
* @param cname name of class being built
*/
#define DECL_XMLENCOBJECTBUILDER(cname) \
DECL_XMLOBJECTBUILDER(XMLTOOL_API,cname,xmlconstants::XMLENC_NS,xmlconstants::XMLENC_PREFIX)
/**
* Macro for declaring encryption 1.1 builders.
*
* @param cname name of class being built
*/
#define DECL_XMLENC11OBJECTBUILDER(cname) \
DECL_XMLOBJECTBUILDER(XMLTOOL_API,cname,xmlconstants::XMLENC11_NS,xmlconstants::XMLENC11_PREFIX)
/**
* @namespace xmlencryption
* Namespace for XML Encryption schema objects
*/
namespace xmlencryption {
DECL_XMLOBJECT_SIMPLE(XMLTOOL_API,CarriedKeyName,Name,XML Encryption CarriedKeyName element);
DECL_XMLOBJECT_SIMPLE(XMLTOOL_API,CipherValue,Value,XML Encryption CipherValue element);
DECL_XMLOBJECT_SIMPLE(XMLTOOL_API,OAEPparams,Name,XML Encryption OAEPparams element);
BEGIN_XMLOBJECT(XMLTOOL_API,KeySize,xmltooling::XMLObject,XML Encryption KeySize element);
DECL_INTEGER_CONTENT(Size);
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,EncryptionMethod,xmltooling::ElementExtensibleXMLObject,XML Encryption EncryptionMethod element);
DECL_STRING_ATTRIB(Algorithm,ALGORITHM);
DECL_TYPED_CHILD(KeySize);
DECL_TYPED_CHILD(OAEPparams);
/** EncryptionMethodType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,Transforms,xmltooling::XMLObject,XML Encryption Transforms element);
DECL_TYPED_FOREIGN_CHILDREN(Transform,xmlsignature);
/** TransformsType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,CipherReference,xmltooling::XMLObject,XML Encryption CipherReference element);
DECL_STRING_ATTRIB(URI,URI);
DECL_TYPED_CHILD(Transforms);
/** CipherReferenceType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,CipherData,xmltooling::XMLObject,XML Encryption CipherData element);
DECL_TYPED_CHILD(CipherValue);
DECL_TYPED_CHILD(CipherReference);
/** CipherDataType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,EncryptionProperty,xmltooling::ElementProxy,XML Encryption EncryptionProperty element);
DECL_STRING_ATTRIB(Target,TARGET);
DECL_STRING_ATTRIB(Id,ID);
/** EncryptionPropertyType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,EncryptionProperties,xmltooling::XMLObject,XML Encryption EncryptionProperties element);
DECL_STRING_ATTRIB(Id,ID);
DECL_TYPED_CHILDREN(EncryptionProperty);
/** EncryptionPropertiesType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,ReferenceType,xmltooling::ElementExtensibleXMLObject,XML Encryption ReferenceType type);
DECL_STRING_ATTRIB(URI,URI);
/** ReferenceType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,DataReference,ReferenceType,XML Encryption DataReference element);
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,KeyReference,ReferenceType,XML Encryption KeyReference element);
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,ReferenceList,xmltooling::XMLObject,XML Encryption ReferenceList element);
DECL_TYPED_CHILDREN(DataReference);
DECL_TYPED_CHILDREN(KeyReference);
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,EncryptedType,xmltooling::XMLObject,XML Encryption EncryptedType abstract type);
DECL_STRING_ATTRIB(Id,ID);
DECL_STRING_ATTRIB(Type,TYPE);
DECL_STRING_ATTRIB(MimeType,MIMETYPE);
DECL_STRING_ATTRIB(Encoding,ENCODING);
DECL_TYPED_CHILD(EncryptionMethod);
DECL_TYPED_FOREIGN_CHILD(KeyInfo,xmlsignature);
DECL_TYPED_CHILD(CipherData);
DECL_TYPED_CHILD(EncryptionProperties);
/** EncryptedType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,EncryptedData,EncryptedType,XML Encryption EncryptedData element);
/** EncryptedDataType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,EncryptedKey,EncryptedType,XML Encryption EncryptedKey element);
DECL_STRING_ATTRIB(Recipient,RECIPIENT);
DECL_TYPED_CHILD(ReferenceList);
DECL_TYPED_CHILD(CarriedKeyName);
/** EncryptedKeyType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,MGF,xmltooling::XMLObject,XML Encryption 1.1 MGF element);
DECL_STRING_ATTRIB(Algorithm,ALGORITHM);
/** MGFType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
DECL_XMLENCOBJECTBUILDER(CarriedKeyName);
DECL_XMLENCOBJECTBUILDER(CipherData);
DECL_XMLENCOBJECTBUILDER(CipherReference);
DECL_XMLENCOBJECTBUILDER(CipherValue);
DECL_XMLENCOBJECTBUILDER(DataReference);
DECL_XMLENCOBJECTBUILDER(EncryptedData);
DECL_XMLENCOBJECTBUILDER(EncryptedKey);
DECL_XMLENCOBJECTBUILDER(EncryptionMethod);
DECL_XMLENCOBJECTBUILDER(EncryptionProperties);
DECL_XMLENCOBJECTBUILDER(EncryptionProperty);
DECL_XMLENCOBJECTBUILDER(KeyReference);
DECL_XMLENCOBJECTBUILDER(KeySize);
DECL_XMLENCOBJECTBUILDER(OAEPparams);
DECL_XMLENCOBJECTBUILDER(ReferenceList);
DECL_XMLENCOBJECTBUILDER(Transforms);
DECL_XMLENC11OBJECTBUILDER(MGF);
/**
* Registers builders and validators for XML Encryption classes into the runtime.
*/
void XMLTOOL_API registerEncryptionClasses();
};
#endif /* __xmltooling_encryption_h__ */
|