Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/draft-keyprov-ocra.pskcxml
blob: 55191595a69a4f764cb1b337bfcf91f0725bbd2a (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
<?xml version="1.0" encoding="UTF-8"?>

<!--
  OCRA (OATH Challenge Response Algorithm) example from section 3 of
  draft-hoyer-keyprov-pskc-algorithm-profiles-01 modified to fit the schema
  as described in RFC 6030.
-->

<KeyContainer Version="1.0" xmlns="urn:ietf:params:xml:ns:keyprov:pskc">
  <KeyPackage>
    <DeviceInfo>
      <Manufacturer>TokenVendorAcme</Manufacturer>
      <SerialNo>987654322</SerialNo>
    </DeviceInfo>
    <Key Id="12345678" Algorithm="urn:ietf:params:xml:ns:keyprov:pskc#OCRA-1:HOTP-SHA512-8:C-QN08">
      <Issuer>Issuer</Issuer>
      <AlgorithmParameters>
        <ChallengeFormat Min="8" Max="8" Encoding="DECIMAL"/>
        <ResponseFormat  Length="8" Encoding="DECIMAL"/>
      </AlgorithmParameters>
      <Data>
        <Secret>
           <PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue>
        </Secret>
        <Counter>
          <PlainValue>0</PlainValue>
        </Counter>
      </Data>
      <Policy>
        <KeyUsage>CR</KeyUsage>
      </Policy>
    </Key>
  </KeyPackage>
</KeyContainer>