This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This is a first public working draft of Test Cases for XML Encryption 1.1 [XMLENC-CORE1] and is intended to become a W3C Note. The XML Security working group plans to revise and add additional test cases to this document.
This document was published by the XML Security Working Group as a First Public Working Draft. If you wish to make comments regarding this document, please send them to email@example.com (subscribe, archives). All feedback is welcome.
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. The group does not expect this document to become a W3C Recommendation. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
plaintext.xml. All the encrypted files are encrypted versions of this plain text file.
".p12". These are PKCS12 files with password
RSA-2048_SHA256WithRSA.p12: Self signed RSA-2048 key.
RSA-3072_SHA256WithRSA.p12: Self signed RSA-3072 key.
RSA-4096_SHA256WithRSA.p12: Self signed RSA-4096 key.
EC-P256_SHA256WithECDSA.p12: Self signed EC-P256 key.
EC-P256_SHA384WithECDSA.p12: Self signed EC-P384 key.
EC-P256_SHA521WithECDSA.p12: Self signed EC-P521 key.
DSA-2048_SHA256WithDSA.p12: Self signed DSA-2048 key with |q|=256.
DH-1024_SHA256WithDSA.p12: DH-1024 key signed with the above DSA key.
plaintext.xmland encrypt it in-place, i.e. the root element of the
plaintext.xmlis replaced by
<EncryptedData>. The details about the encryption key are embedded in the
KeyInfoof the contents's
X509Dataof the public key.
|cipherText||All the examples in this table use the new AES-GCM algorithm.|
|cipherText||In this example the OAEP digest method is specified as SHA256. The MFG algorithm is SHA1.|
|cipherText||This example uses the new
PSource: Specified 8 bytes
|cipherText||This also uses
KeyInfoof the content's
KeyInfoof first symmetric key's
AgreementMethodhas a temporary generated key indicated by
X509Datawhich is the receiver's public key.
|EC-P256||aes128-gcm||kw-aes128||ECDH-ES||ConcatKDF||cipherText||In the first three examples the key wrapping algorithm size matches the symmetric algorithm key size. This is not required, the AES key wrapping algorithms can encrypt any data that is a multiple of 64 bits.|
|DH-1024||aes128-gcm||kw-aes128||dh-es||PBKDF2||cipherText||This example encrypts with a Diffie Hellman key with with the new algorithm
|EC-P256||aes128-gcm||kw-aes256||ECDH-ES||PBKDF2||cipherText||This example uses EC keys, but not the ConcatKDF key derivation function. Instead it uses the PBKDF2 key derivation. Also notice that the encryption algorithm and key wrapping algorithm have different key lengths - 128 and 256 respectively . The PBKDF2 parameters specifies a key length of 32 to match the wrapping algorithm key length.|
Dated references below are to the latest known or appropriate edition of the referenced work. The referenced works may be subject to revision, and conformant implementations may follow, and are encouraged to investigate the appropriateness of following, some or all more recent editions or replacements of the works cited. It is in each case implementation-defined which editions are supported.
No informative references.