Skip to content

Commit 3017e80

Browse files
johanlundbergc00kiemon5ter
authored andcommitted
test that xenc-schema-11.xsd is used in schema validator
1 parent a552009 commit 3017e80

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

tests/encrypted_attribute_statement.xml

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<ns0:AttributeStatement xmlns:ns0="urn:oasis:names:tc:SAML:2.0:assertion"
33
xmlns:ns1="http://www.w3.org/2001/04/xmlenc#"
4-
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#">
4+
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#"
5+
xmlns:ns3="http://www.w3.org/2009/xmlenc11#">
56
<ns0:EncryptedAttribute >
67
<ns1:EncryptedData Id="_dcf9eb6ed26d9332d940130e0cae1ba1"
78
Type="http://www.w3.org/2001/04/xmlenc#Element">
@@ -25,8 +26,9 @@
2526
</ns1:CipherData>
2627
</ns1:EncryptedData>
2728
<ns1:EncryptedKey Id="_1234">
28-
<ns1:EncryptionMethod
29-
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
29+
<ns1:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5">
30+
<ns3:MGF Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha1" />
31+
</ns1:EncryptionMethod>
3032
<ns2:KeyInfo>
3133
<ns2:KeyName/>
3234
</ns2:KeyInfo>
@@ -48,8 +50,9 @@
4850
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
4951
<ns2:KeyInfo>
5052
<ns1:EncryptedKey>
51-
<ns1:EncryptionMethod
52-
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
53+
<ns1:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5">
54+
<ns3:MGF Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha1" />
55+
</ns1:EncryptionMethod>
5356
<ns2:KeyInfo>
5457
<ns2:KeyName/>
5558
</ns2:KeyInfo>
@@ -82,8 +85,9 @@
8285
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
8386
<ns2:KeyInfo>
8487
<ns1:EncryptedKey>
85-
<ns1:EncryptionMethod
86-
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
88+
<ns1:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5">
89+
<ns3:MGF Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha1" />
90+
</ns1:EncryptionMethod>
8791
<ns2:KeyInfo>
8892
<ns2:KeyName/>
8993
</ns2:KeyInfo>
@@ -116,8 +120,9 @@
116120
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
117121
<ns2:KeyInfo>
118122
<ns1:EncryptedKey>
119-
<ns1:EncryptionMethod
120-
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
123+
<ns1:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5">
124+
<ns3:MGF Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha1" />
125+
</ns1:EncryptionMethod>
121126
<ns2:KeyInfo>
122127
<ns2:KeyName/>
123128
</ns2:KeyInfo>

0 commit comments

Comments
 (0)