Set fourth file version digit to signify rebuild.
[shibboleth/cpp-xmltooling.git] / schemas / xenc11-schema.xsd
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4 #
5 # Copyright ©[2011] World Wide Web Consortium 
6 # (Massachusetts Institute of Technology,  
7 #  European Research Consortium for Informatics and Mathematics, 
8 #  Keio University). All Rights Reserved.  
9 # This work is distributed under the W3C® Software License [1] in the
10 # hope that it will be useful, but WITHOUT ANY WARRANTY; without even
11 # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 # PURPOSE. 
13 # [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
14 #
15 -->
16
17 <schema xmlns='http://www.w3.org/2001/XMLSchema' version='1.0'
18         xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
19         xmlns:xenc11='http://www.w3.org/2009/xmlenc11#'
20         xmlns:ds='http://www.w3.org/2000/09/xmldsig#'
21         targetNamespace='http://www.w3.org/2009/xmlenc11#'
22         elementFormDefault='qualified'>
23
24         <import namespace='http://www.w3.org/2000/09/xmldsig#' schemaLocation='xmldsig-core-schema.xsd'/>
25         <import namespace='http://www.w3.org/2001/04/xmlenc#' schemaLocation='xenc-schema.xsd'/>
26
27         <element name="ConcatKDFParams" type="xenc11:ConcatKDFParamsType"/>
28         <complexType name="ConcatKDFParamsType">
29                 <sequence>
30                         <element ref="ds:DigestMethod"/>
31                 </sequence>
32                 <attribute name="AlgorithmID" type="hexBinary"/>
33                 <attribute name="PartyUInfo" type="hexBinary"/>
34                 <attribute name="PartyVInfo" type="hexBinary"/>
35                 <attribute name="SuppPubInfo" type="hexBinary"/>
36                 <attribute name="SuppPrivInfo" type="hexBinary"/>
37         </complexType>
38
39         <element name="DerivedKey" type="xenc11:DerivedKeyType"/>
40         <complexType name="DerivedKeyType">
41                 <sequence>
42                         <element ref="xenc11:KeyDerivationMethod" minOccurs="0"/>
43                         <element ref="xenc:ReferenceList" minOccurs="0"/>
44                         <element name="DerivedKeyName" type="string" minOccurs="0"/>
45                         <element name="MasterKeyName" type="string" minOccurs="0"/>
46                 </sequence>
47                 <attribute name="Recipient" type="string" use="optional"/>
48                 <attribute name="Id" type="ID" use="optional"/>
49                 <attribute name="Type" type="anyURI" use="optional"/>
50         </complexType>
51
52         <element name="KeyDerivationMethod" type="xenc11:KeyDerivationMethodType"/>
53         <complexType name="KeyDerivationMethodType">
54                 <sequence>
55                         <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
56                 </sequence>
57                 <attribute name="Algorithm" type="anyURI" use="required"/>
58         </complexType>
59
60         <element name="PBKDF2-params" type="xenc11:PBKDF2ParameterType"/>
61
62         <complexType name="AlgorithmIdentifierType">
63                 <sequence>
64                         <element name="Parameters" type="anyType" minOccurs="0"/>
65                 </sequence>
66         <attribute name="Algorithm" type="anyURI" use="required" />
67         </complexType>
68
69         <complexType name="PRFAlgorithmIdentifierType">
70                 <complexContent>
71           <restriction base="xenc11:AlgorithmIdentifierType">
72             <attribute name="Algorithm" type="anyURI" use="required" />
73           </restriction>
74         </complexContent>
75         </complexType>
76
77         <complexType name="PBKDF2ParameterType">
78                 <sequence>
79                         <element name="Salt">
80                                 <complexType>
81                                         <choice>
82                                                 <element name="Specified" type="base64Binary"/>
83                                                 <element name="OtherSource" type="xenc11:AlgorithmIdentifierType"/>
84                                         </choice>
85                                 </complexType>
86                         </element>
87                         <element name="IterationCount" type="positiveInteger"/>
88                         <element name="KeyLength" type="positiveInteger"/>
89                         <element name="PRF" type="xenc11:PRFAlgorithmIdentifierType"/>
90                 </sequence>
91         </complexType>
92
93     <element name="MGF" type="xenc11:MGFType"/>
94     <complexType name="MGFType">
95       <complexContent>
96         <restriction base="xenc11:AlgorithmIdentifierType">
97           <attribute name="Algorithm" type="anyURI" use="required" />
98         </restriction>
99       </complexContent>
100     </complexType>
101
102 </schema>
103
104