TS_103_221_01_HashedID.xsd 1.66 KB
Newer Older
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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
           xmlns="http://uri.etsi.org/03221/X1/2017/10/HashedID" 
           xmlns:x1="http://uri.etsi.org/03221/X1/2017/10" 
           xmlns:etsi103280="http://uri.etsi.org/03280/common/2017/07" 
           targetNamespace="http://uri.etsi.org/03221/X1/2017/10/HashedID" 
           elementFormDefault="qualified" version="1.9.1">

  <xs:import namespace="http://uri.etsi.org/03280/common/2017/07"/>
  <xs:import namespace="http://uri.etsi.org/03221/X1/2017/10"/>
  <!-- Message containers -->

  <xs:complexType name="HashContext">
    <xs:complexContent>
      <xs:extension base="x1:GenericObject">
        <xs:sequence>
          <xs:element name="hashAlgorithm" type="HashAlgorithm"></xs:element>
          <xs:element name="salt" type="Salt"></xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:simpleType name="HashAlgorithm">
    <xs:restriction base="xs:string">
      <xs:enumeration value="sha-256"/>
      <xs:enumeration value="sha-512"/>
      <xs:enumeration value="sha3-512"/>
    </xs:restriction>
  </xs:simpleType>
    
  <xs:simpleType name="Salt">
    <xs:restriction base="xs:hexBinary">
      <xs:minLength value="8"></xs:minLength>
    </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="HashedIdentifier">
    <xs:sequence>
      <xs:element name="hashContextID" type="x1:GenericObjectID"></xs:element>
      <xs:element name="targetIdentityType" type="etsi103280:ShortString"></xs:element>
      <xs:element name="hashDigest" type="xs:hexBinary"></xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>