~ubuntu-branches/ubuntu/wily/python-pskc/wily

« back to all changes in this revision

Viewing changes to tests/kw-aes128.pskcxml

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2014-06-20 14:50:59 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140620145059-cf3iwj9rnwagig43
Tags: 0.2-1
* New upstream release:
  - raise exceptions on parsing, decryption and other problems
  - support more encryption algorithms (AES128-CBC, AES192-CBC, AES256-CBC,
    TripleDES-CBC, KW-AES128, KW-AES192, KW-AES256 and KW-TripleDES) and be
    more lenient in accepting algorithm URIs
  - support all HMAC algorithms that Python's hashlib module has hash
    functions for (HMAC-MD5, HMAC-SHA1, HMAC-SHA224, HMAC-SHA256,
    HMAC-SHA384 and HMAC-SHA512)
  - support PRF attribute of PBKDF2 algorithm
* Build and install Sphinx documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
 
 
3
<!--
 
4
  Test that holds an kw-aes128 encrypted value. Key is
 
5
  000102030405060708090A0B0C0D0E0F and the resulting plaintext should be
 
6
  00112233445566778899AABBCCDDEEFF.
 
7
-->
 
8
 
 
9
<KeyContainer Version="1.0"
 
10
  xmlns="urn:ietf:params:xml:ns:keyprov:pskc"
 
11
  xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
 
12
 <EncryptionKey>
 
13
  <KeyName xmlns="http://www.w3.org/2000/09/xmldsig#">Pre-shared-key</KeyName>
 
14
 </EncryptionKey>
 
15
 <KeyPackage>
 
16
  <Key>
 
17
   <Data>
 
18
    <Secret>
 
19
     <EncryptedValue>
 
20
      <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes128"/>
 
21
      <xenc:CipherData>
 
22
       <xenc:CipherValue>H6aLCoEStEeu80vY+1p7gp0+hiNx0s/l</xenc:CipherValue>
 
23
      </xenc:CipherData>
 
24
     </EncryptedValue>
 
25
    </Secret>
 
26
   </Data>
 
27
  </Key>
 
28
 </KeyPackage>
 
29
</KeyContainer>