Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/misc/checkdigits.pskcxml
blob: 3dfd09ea94982b16a81796d5cc0dd766ab7bd30d (plain)
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
<?xml version="1.0" encoding="UTF-8"?>

<!--
  Test PSKC file for testing the check digit attributes in the
  ChallengeFormat and ResponseFormat configuration.
-->

<KeyContainer Version="1.0" xmlns="urn:ietf:params:xml:ns:keyprov:pskc">
  <KeyPackage>
    <Key>
      <AlgorithmParameters>
        <ChallengeFormat Encoding="DECIMAL" Min="12" Max="34" CheckDigits="true"/>
        <ResponseFormat Encoding="DECIMAL" Length="8" CheckDigits="false"/>
      </AlgorithmParameters>
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key>
      <AlgorithmParameters>
        <ChallengeFormat Encoding="DECIMAL" Min="56" Max="78" CheckDigits="FALSE"/>
        <ResponseFormat Encoding="DECIMAL" Length="9" CheckDigits="1"/>
      </AlgorithmParameters>
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key>
      <AlgorithmParameters>
        <!-- note the singular CheckDigit here -->
        <ChallengeFormat Encoding="DECIMAL" Min="16" Max="87" CheckDigit="false"/>
        <ResponseFormat Encoding="DECIMAL" Length="3" CheckDigit="true"/>
      </AlgorithmParameters>
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key>
      <AlgorithmParameters>
        <ChallengeFormat Encoding="HEXADECIMAL" Min="4" Max="6"/>
        <ResponseFormat Encoding="ALPHANUMERIC" Length="6"/>
      </AlgorithmParameters>
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
    </Key>
  </KeyPackage>
</KeyContainer>