Arthur de Jong

Open Source / Free Software developer

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

<!--
  TOTP (OATH Time based OTP) example from section 4 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>987654323</SerialNo>
    </DeviceInfo>
    <Key Algorithm="urn:ietf:params:xml:ns:keyprov:pskc#totp" Id="987654323">
      <Issuer>Issuer</Issuer>
      <AlgorithmParameters>
        <ResponseFormat Length="6" Encoding="DECIMAL"/>
      </AlgorithmParameters>
      <Data>
        <Secret>
          <PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue>
        </Secret>
        <Time>
          <PlainValue>0</PlainValue>
        </Time>
        <TimeInterval>
          <PlainValue>30</PlainValue>
        </TimeInterval>
        <TimeDrift>
          <PlainValue>4</PlainValue>
        </TimeDrift>
      </Data>
      <Policy>
        <KeyUsage>OTP</KeyUsage>
      </Policy>
    </Key>
  </KeyPackage>
</KeyContainer>