oadr_xmldsig11.xsd 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. #
  4. # Copyright ©[2011] World Wide Web Consortium
  5. # (Massachusetts Institute of Technology,
  6. # European Research Consortium for Informatics and Mathematics,
  7. # Keio University). All Rights Reserved.
  8. # This work is distributed under the W3C® Software License [1] in the
  9. # hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  10. # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. # PURPOSE.
  12. # [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
  13. #
  14. -->
  15. <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsig11="http://www.w3.org/2009/xmldsig11#" targetNamespace="http://www.w3.org/2009/xmldsig11#" elementFormDefault="qualified" version="0.1">
  16. <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="oadr_xmldsig.xsd"/>
  17. <element name="ECKeyValue" type="dsig11:ECKeyValueType"/>
  18. <complexType name="ECKeyValueType">
  19. <sequence>
  20. <choice>
  21. <element name="ECParameters" type="dsig11:ECParametersType"/>
  22. <element name="NamedCurve" type="dsig11:NamedCurveType"/>
  23. </choice>
  24. <element name="PublicKey" type="dsig11:ECPointType"/>
  25. </sequence>
  26. <attribute name="Id" type="ID" use="optional"/>
  27. </complexType>
  28. <complexType name="NamedCurveType">
  29. <attribute name="URI" type="anyURI" use="required"/>
  30. </complexType>
  31. <simpleType name="ECPointType">
  32. <restriction base="ds:CryptoBinary"/>
  33. </simpleType>
  34. <complexType name="ECParametersType">
  35. <sequence>
  36. <element name="FieldID" type="dsig11:FieldIDType"/>
  37. <element name="Curve" type="dsig11:CurveType"/>
  38. <element name="Base" type="dsig11:ECPointType"/>
  39. <element name="Order" type="ds:CryptoBinary"/>
  40. <element name="CoFactor" type="integer" minOccurs="0"/>
  41. <element name="ValidationData" type="dsig11:ECValidationDataType" minOccurs="0"/>
  42. </sequence>
  43. </complexType>
  44. <complexType name="FieldIDType">
  45. <choice>
  46. <element ref="dsig11:Prime"/>
  47. <element ref="dsig11:TnB"/>
  48. <element ref="dsig11:PnB"/>
  49. <element ref="dsig11:GnB"/>
  50. <any namespace="##other" processContents="lax"/>
  51. </choice>
  52. </complexType>
  53. <complexType name="CurveType">
  54. <sequence>
  55. <element name="A" type="ds:CryptoBinary"/>
  56. <element name="B" type="ds:CryptoBinary"/>
  57. </sequence>
  58. </complexType>
  59. <complexType name="ECValidationDataType">
  60. <sequence>
  61. <element name="seed" type="ds:CryptoBinary"/>
  62. </sequence>
  63. <attribute name="hashAlgorithm" type="anyURI" use="required"/>
  64. </complexType>
  65. <element name="Prime" type="dsig11:PrimeFieldParamsType"/>
  66. <complexType name="PrimeFieldParamsType">
  67. <sequence>
  68. <element name="P" type="ds:CryptoBinary"/>
  69. </sequence>
  70. </complexType>
  71. <element name="GnB" type="dsig11:CharTwoFieldParamsType"/>
  72. <complexType name="CharTwoFieldParamsType">
  73. <sequence>
  74. <element name="M" type="positiveInteger"/>
  75. </sequence>
  76. </complexType>
  77. <element name="TnB" type="dsig11:TnBFieldParamsType"/>
  78. <complexType name="TnBFieldParamsType">
  79. <complexContent>
  80. <extension base="dsig11:CharTwoFieldParamsType">
  81. <sequence>
  82. <element name="K" type="positiveInteger"/>
  83. </sequence>
  84. </extension>
  85. </complexContent>
  86. </complexType>
  87. <element name="PnB" type="dsig11:PnBFieldParamsType"/>
  88. <complexType name="PnBFieldParamsType">
  89. <complexContent>
  90. <extension base="dsig11:CharTwoFieldParamsType">
  91. <sequence>
  92. <element name="K1" type="positiveInteger"/>
  93. <element name="K2" type="positiveInteger"/>
  94. <element name="K3" type="positiveInteger"/>
  95. </sequence>
  96. </extension>
  97. </complexContent>
  98. </complexType>
  99. <element name="DEREncodedKeyValue" type="dsig11:DEREncodedKeyValueType"/>
  100. <complexType name="DEREncodedKeyValueType">
  101. <simpleContent>
  102. <extension base="base64Binary">
  103. <attribute name="Id" type="ID" use="optional"/>
  104. </extension>
  105. </simpleContent>
  106. </complexType>
  107. <element name="KeyInfoReference" type="dsig11:KeyInfoReferenceType"/>
  108. <complexType name="KeyInfoReferenceType">
  109. <attribute name="URI" type="anyURI" use="required"/>
  110. <attribute name="Id" type="ID" use="optional"/>
  111. </complexType>
  112. <element name="X509Digest" type="dsig11:X509DigestType"/>
  113. <complexType name="X509DigestType">
  114. <simpleContent>
  115. <extension base="base64Binary">
  116. <attribute name="Algorithm" type="anyURI" use="required"/>
  117. </extension>
  118. </simpleContent>
  119. </complexType>
  120. </schema>