Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/invalid-encryption.pskcxml
blob: d900dc92789c2f819e5e55085484d3c7be63ccdb (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
<?xml version="1.0" encoding="UTF-8"?>

<!--
  Based on the Figure 6 example, this file includes an unknown encryption
  algorithm and a key without an algorithm specified.
-->

<KeyContainer Version="1.0"
  xmlns="urn:ietf:params:xml:ns:keyprov:pskc"
  xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
  xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
  <EncryptionKey>
    <ds:KeyName>Pre-shared-key</ds:KeyName>
  </EncryptionKey>
  <KeyPackage>
    <Key Id="12345678" Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:hotp">
      <Data>
        <Secret>
          <EncryptedValue>
            <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#unknown"/>
            <xenc:CipherData>
              <xenc:CipherValue>
AAECAwQFBgcICQoLDA0OD+cIHItlB3Wra1DUpxVvOx2lef1VmNPCMl8jwZqIUqGv
                </xenc:CipherValue>
            </xenc:CipherData>
          </EncryptedValue>
        </Secret>
      </Data>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key Id="45678901" Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:hotp">
      <Data>
        <Secret>
          <EncryptedValue>
            <xenc:EncryptionMethod/>
            <xenc:CipherData>
              <xenc:CipherValue>
AAECAwQFBgcICQoLDA0OD+cIHItlB3Wra1DUpxVvOx2lef1VmNPCMl8jwZqIUqGv
                </xenc:CipherValue>
            </xenc:CipherData>
          </EncryptedValue>
        </Secret>
      </Data>
    </Key>
  </KeyPackage>
</KeyContainer>