Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@

"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"simplesamlphp/assert": "~3.0",
"simplesamlphp/xml-common": "~3.0"
"simplesamlphp/assert": "^3.0",
"simplesamlphp/xml-common": "^3.2"
},
"require-dev": {
"phpunit/phpunit": "^13.3",
"psr/http-message": "^1.0|^2.0",
"simplesamlphp/simplesamlphp-test-framework": "~2.0"
"simplesamlphp/simplesamlphp-test-framework": "^2.0"
},
"extra": {
"branch-alias": {
Expand Down
2 changes: 1 addition & 1 deletion tests/XML/EncryptedCustom.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class EncryptedCustom extends AbstractElement implements EncryptedElementI
}


public const string NS = 'urn:ssp:custom';
public const string NS = 'urn:x-simplesamlphp:namespace';

public const string NS_PREFIX = 'ssp';

Expand Down
6 changes: 2 additions & 4 deletions tests/XML/ds/KeyValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ public function testMarshalling(): void

$document = self::$empty;
$document->documentElement->appendChild($document->importNode(self::$rsaKeyValue->documentElement, true));
$normalized = DOMDocumentFactory::normalizeDocument($document);

$this->assertXmlStringEqualsXmlString(
$normalized->saveXml($normalized),
$document->saveXml($document->documentElement),
strval($keyValue),
);
}
Expand All @@ -101,10 +100,9 @@ public function testMarshallingWithOtherElement(): void
$document = self::$empty;
$element->toXML($document->documentElement);
$document = Dom\XMLDocument::createFromString($document->saveXml($document->documentElement));
$normalized = DOMDocumentFactory::normalizeDocument($document);

$this->assertXmlStringEqualsXmlString(
$normalized->saveXml($normalized),
$document->saveXml($document->documentElement),
strval($keyValue),
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/XML/ds/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testMarshalling(): void
[
new Chunk(
DOMDocumentFactory::fromString(sprintf(
'<ssp:data xmlns:ssp="urn:ssp:custom">%s</ssp:data>',
'<ssp:data xmlns:ssp="urn:x-simplesamlphp:namespace">%s</ssp:data>',
$img,
))->documentElement,
),
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_DigestMethod.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:some="urn:test:some" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">
<some:Chunk>Random</some:Chunk>
<ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">
<some:Chunk xmlns:some="urn:test:some">Random</some:Chunk>
</ds:DigestMethod>
10 changes: 5 additions & 5 deletions tests/resources/xml/ds_KeyInfo.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ssp="urn:x-simplesamlphp:namespace" Id="fed654">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="fed654">
<ds:KeyName>testkey</ds:KeyName>
<ds:X509Data>
<ds:X509Certificate>MIICxDCCAi2gAwIBAgIUZ9QDx+SBFHednUWDFGm9tyVKrgQwDQYJKoZIhvcNAQELBQAwczElMCMGA1UEAwwcc2VsZnNpZ25lZC5zaW1wbGVzYW1scGhwLm9yZzEZMBcGA1UECgwQU2ltcGxlU0FNTHBocCBIUTERMA8GA1UEBwwISG9ub2x1bHUxDzANBgNVBAgMBkhhd2FpaTELMAkGA1UEBhMCVVMwIBcNMjIxMjAzMTAzNTQwWhgPMjEyMjExMDkxMDM1NDBaMHMxJTAjBgNVBAMMHHNlbGZzaWduZWQuc2ltcGxlc2FtbHBocC5vcmcxGTAXBgNVBAoMEFNpbXBsZVNBTUxwaHAgSFExETAPBgNVBAcMCEhvbm9sdWx1MQ8wDQYDVQQIDAZIYXdhaWkxCzAJBgNVBAYTAlVTMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDessdFRVDTMQQW3Na81B1CjJV1tmY3nopoIhZrkbDxLa+pv7jGDRcYreyu1DoQxEs06V2nHLoyOPhqJXSFivqtUwVYhR6NYgbNI6RRSsIJCweH0YOdlHna7gULPcLX0Bfbi4odStaFwG9yzDySwSEPtsKxm5pENPjNVGh+jJ+H/QIDAQABo1MwUTAdBgNVHQ4EFgQUvV75t8EoQo2fVa0E9otdtIGK5X0wHwYDVR0jBBgwFoAUvV75t8EoQo2fVa0E9otdtIGK5X0wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQANQUeiwPJXkWMXuaDHToEBKcezYGqGEYnGUi9LMjeb+Kln7X8nn5iknlz4k77rWCbSwLPC/WDr0ySYQA+HagaeUaFpoiYFJKS6uFlK1HYWnM3W4PUiGHg1/xeZlMO44wTwybXVo0y9KMhchfB5XNbDdoJcqWYvi6xtmZZNRbxUyw==</ds:X509Certificate>
Expand All @@ -7,15 +7,15 @@
<ds:PGPData>
<ds:PGPKeyID>GpM7</ds:PGPKeyID>
<ds:PGPKeyPacket>GpM8</ds:PGPKeyPacket>
<xenc:P>/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:P>
<xenc:P xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:P>
</ds:PGPData>
<ds:SPKIData>
<ds:SPKISexp>GpM6</ds:SPKISexp>
<xenc:seed>/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:seed>
<xenc:seed xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:seed>
<ds:SPKISexp>GpM7</ds:SPKISexp>
<ds:SPKISexp>GpM8</ds:SPKISexp>
<xenc:CarriedKeyName>Some label</xenc:CarriedKeyName>
<xenc:CarriedKeyName xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">Some label</xenc:CarriedKeyName>
</ds:SPKIData>
<ds:MgmtData>ManagementData</ds:MgmtData>
<ssp:Chunk>some</ssp:Chunk>
<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>
</ds:KeyInfo>
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_Object.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ds:Object xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ssp="urn:ssp:custom" Id="abc123" MimeType="image/png" Encoding="http://www.w3.org/2000/09/xmldsig#base64">
<ssp:data>iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=</ssp:data>
<ds:Object xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="abc123" MimeType="image/png" Encoding="http://www.w3.org/2000/09/xmldsig#base64">
<ssp:data xmlns:ssp="urn:x-simplesamlphp:namespace">iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=</ssp:data>
</ds:Object>
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_PGPData.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ds:PGPData xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<ds:PGPData xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:PGPKeyID>GpM7</ds:PGPKeyID>
<ds:PGPKeyPacket>GpM8</ds:PGPKeyPacket>
<xenc:P>/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:P>
<xenc:P xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:P>
</ds:PGPData>
6 changes: 3 additions & 3 deletions tests/resources/xml/ds_SPKIData.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<ds:SPKIData xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<ds:SPKIData xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SPKISexp>GpM6</ds:SPKISexp>
<xenc:seed>/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:seed>
<xenc:seed xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:seed>
<ds:SPKISexp>GpM7</ds:SPKISexp>
<ds:SPKISexp>GpM8</ds:SPKISexp>
<xenc:CarriedKeyName>Some label</xenc:CarriedKeyName>
<xenc:CarriedKeyName xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">Some label</xenc:CarriedKeyName>
<ds:SPKISexp>GpM9</ds:SPKISexp>
</ds:SPKIData>
12 changes: 6 additions & 6 deletions tests/resources/xml/ds_Signature.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ssp="urn:x-simplesamlphp:namespace" Id="def456">
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="def456">
<ds:SignedInfo Id="cba321">
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
Expand All @@ -21,19 +21,19 @@
<ds:PGPData>
<ds:PGPKeyID>GpM7</ds:PGPKeyID>
<ds:PGPKeyPacket>GpM8</ds:PGPKeyPacket>
<xenc:P>/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:P>
<xenc:P xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:P>
</ds:PGPData>
<ds:SPKIData>
<ds:SPKISexp>GpM6</ds:SPKISexp>
<xenc:seed>/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:seed>
<xenc:seed xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=</xenc:seed>
<ds:SPKISexp>GpM7</ds:SPKISexp>
<ds:SPKISexp>GpM8</ds:SPKISexp>
<xenc:CarriedKeyName>Some label</xenc:CarriedKeyName>
<xenc:CarriedKeyName xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">Some label</xenc:CarriedKeyName>
</ds:SPKIData>
<ds:MgmtData>ManagementData</ds:MgmtData>
<ssp:Chunk>some</ssp:Chunk>
<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>
</ds:KeyInfo>
<ds:Object>
<ssp:Chunk>Some</ssp:Chunk>
<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">Some</ssp:Chunk>
</ds:Object>
</ds:Signature>
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_SignatureMethod.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ds:SignatureMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ssp="urn:x-simplesamlphp:namespace" Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256">
<ds:SignatureMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256">
<ds:HMACOutputLength>128</ds:HMACOutputLength>
<ssp:Chunk>Some</ssp:Chunk>
<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">Some</ssp:Chunk>
</ds:SignatureMethod>
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_SignatureProperties.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ds:SignatureProperties xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ssp="urn:x-simplesamlphp:namespace" Id="def456">
<ds:SignatureProperties xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="def456">
<ds:SignatureProperty Target="https://simplesamlphp.org/some/target" Id="abc123">
<ssp:HSMSerialNumber>1234567890</ssp:HSMSerialNumber>
<ssp:HSMSerialNumber xmlns:ssp="urn:x-simplesamlphp:namespace">1234567890</ssp:HSMSerialNumber>
</ds:SignatureProperty>
</ds:SignatureProperties>
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_SignatureProperty.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ds:SignatureProperty xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ssp="urn:x-simplesamlphp:namespace" Target="https://simplesamlphp.org/some/target" Id="abc123">
<ssp:HSMSerialNumber>1234567890</ssp:HSMSerialNumber>
<ds:SignatureProperty xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Target="https://simplesamlphp.org/some/target" Id="abc123">
<ssp:HSMSerialNumber xmlns:ssp="urn:x-simplesamlphp:namespace">1234567890</ssp:HSMSerialNumber>
</ds:SignatureProperty>
1 change: 0 additions & 1 deletion tests/resources/xml/ds_SignatureValue.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<?xml version="1.0"?>
<ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="abc123">j14G9v6AnsOiEJYgkTg864DG3e/KLqoGpuybPGSGblVTn7ST6M/BsvP7YiVZjLqJEuEvWmf2mW4DPb+pbArzzDcsLWEtNveMrw+FkWehDUQV9oe20iepo+W46wmj7zB/eWL+Z8MrGvlycoTndJU6CVwHTLsB+dq2FDa7JV4pAPjMY32JZTbiwKhzqw3nEi/eVrujJE4YRrlW28D+rXhITfoUAGGvsqPzcwGzp02lnMe2SmXADY1u9lbVjOhUrJpgvWfn9YuiCR+wjvaGMwIwzfJxChLJZOBV+1ad1CyNTiu6qAblxZ4F8cWlMWJ7f0KkWvtw66HOf2VNR6Qan2Ra7Q==</ds:SignatureValue>
4 changes: 2 additions & 2 deletions tests/resources/xml/ds_Transform_InclusiveNamespaces.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ds:Transform xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="dsig soap"/>
<ds:Transform xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="dsig soap"/>
</ds:Transform>
8 changes: 4 additions & 4 deletions tests/resources/xml/ds_X509Data.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsig11="http://www.w3.org/2009/xmldsig11#" xmlns:ssp="urn:x-simplesamlphp:namespace">
<ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Certificate>MIICxDCCAi2gAwIBAgIUZ9QDx+SBFHednUWDFGm9tyVKrgQwDQYJKoZIhvcNAQELBQAwczElMCMGA1UEAwwcc2VsZnNpZ25lZC5zaW1wbGVzYW1scGhwLm9yZzEZMBcGA1UECgwQU2ltcGxlU0FNTHBocCBIUTERMA8GA1UEBwwISG9ub2x1bHUxDzANBgNVBAgMBkhhd2FpaTELMAkGA1UEBhMCVVMwIBcNMjIxMjAzMTAzNTQwWhgPMjEyMjExMDkxMDM1NDBaMHMxJTAjBgNVBAMMHHNlbGZzaWduZWQuc2ltcGxlc2FtbHBocC5vcmcxGTAXBgNVBAoMEFNpbXBsZVNBTUxwaHAgSFExETAPBgNVBAcMCEhvbm9sdWx1MQ8wDQYDVQQIDAZIYXdhaWkxCzAJBgNVBAYTAlVTMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDessdFRVDTMQQW3Na81B1CjJV1tmY3nopoIhZrkbDxLa+pv7jGDRcYreyu1DoQxEs06V2nHLoyOPhqJXSFivqtUwVYhR6NYgbNI6RRSsIJCweH0YOdlHna7gULPcLX0Bfbi4odStaFwG9yzDySwSEPtsKxm5pENPjNVGh+jJ+H/QIDAQABo1MwUTAdBgNVHQ4EFgQUvV75t8EoQo2fVa0E9otdtIGK5X0wHwYDVR0jBBgwFoAUvV75t8EoQo2fVa0E9otdtIGK5X0wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQANQUeiwPJXkWMXuaDHToEBKcezYGqGEYnGUi9LMjeb+Kln7X8nn5iknlz4k77rWCbSwLPC/WDr0ySYQA+HagaeUaFpoiYFJKS6uFlK1HYWnM3W4PUiGHg1/xeZlMO44wTwybXVo0y9KMhchfB5XNbDdoJcqWYvi6xtmZZNRbxUyw==</ds:X509Certificate>
<ds:X509IssuerSerial>
<ds:X509IssuerName>C=US,ST=Hawaii,L=Honolulu,O=SimpleSAMLphp HQ,CN=SimpleSAMLphp Testing CA,emailAddress=noreply@simplesamlphp.org</ds:X509IssuerName>
<ds:X509SerialNumber>2</ds:X509SerialNumber>
</ds:X509IssuerSerial>
<ds:X509SubjectName>/CN=selfsigned.simplesamlphp.org/O=SimpleSAMLphp HQ/L=Honolulu/ST=Hawaii/C=US</ds:X509SubjectName>
<dsig11:X509Digest Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">6tN39Q9d6IevlAWLeM7lQGazUnVlJOe1wCk3sro2rfE=</dsig11:X509Digest>
<ssp:Chunk>some</ssp:Chunk>
<ssp:Chunk>other</ssp:Chunk>
<dsig11:X509Digest xmlns:dsig11="http://www.w3.org/2009/xmldsig11#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">6tN39Q9d6IevlAWLeM7lQGazUnVlJOe1wCk3sro2rfE=</dsig11:X509Digest>
<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>
<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">other</ssp:Chunk>
</ds:X509Data>
6 changes: 3 additions & 3 deletions tests/resources/xml/xenc11_ConcatKDFParams.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<xenc11:ConcatKDFParams xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:some="urn:test:some" AlgorithmID="a1b2" PartyUInfo="b2c3" PartyVInfo="c3d4" SuppPubInfo="d4e5" SuppPrivInfo="e5f6">
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">
<some:Chunk>Random</some:Chunk>
<xenc11:ConcatKDFParams xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" AlgorithmID="a1b2" PartyUInfo="b2c3" PartyVInfo="c3d4" SuppPubInfo="d4e5" SuppPrivInfo="e5f6">
<ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">
<some:Chunk xmlns:some="urn:test:some">Random</some:Chunk>
</ds:DigestMethod>
</xenc11:ConcatKDFParams>
10 changes: 5 additions & 5 deletions tests/resources/xml/xenc11_DerivedKey.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<xenc11:DerivedKey xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Recipient="phpunit" Id="phpunit" Type="urn:x-simplesamlphp:type">
<xenc11:DerivedKey xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" Recipient="phpunit" Id="phpunit" Type="urn:x-simplesamlphp:type">
<xenc11:KeyDerivationMethod Algorithm="http://www.w3.org/2009/xmlenc11#ConcatKDF">
<ds:RSAKeyValue>
<ds:RSAKeyValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:Modulus>dGhpcyBpcyBzb21lIHJhbmRvbSBtb2R1bHVzCg==</ds:Modulus>
<ds:Exponent>dGhpcyBpcyBzb21lIHJhbmRvbSBleHBvbmVudAo=</ds:Exponent>
</ds:RSAKeyValue>
</xenc11:KeyDerivationMethod>
<xenc:ReferenceList>
<xenc:ReferenceList xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:DataReference URI="#Encrypted_DATA_ID">
<ds:Transforms>
<ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
<ds:XPath>self::xenc:EncryptedData[@Id="example1"]</ds:XPath>
</ds:Transform>
</ds:Transforms>
</xenc:DataReference>
<xenc:KeyReference URI="#Encrypted_KEY_ID">
<ds:Transforms>
<ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
<ds:XPath>self::xenc:EncryptedKey[@Id="example1"]</ds:XPath>
</ds:Transform>
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/xml/xenc11_KeyDerivationMethod.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<xenc11:KeyDerivationMethod xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2009/xmlenc11#ConcatKDF">
<ds:KeyName>testkey</ds:KeyName>
<xenc11:KeyDerivationMethod xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" Algorithm="http://www.w3.org/2009/xmlenc11#ConcatKDF">
<ds:KeyName xmlns:ds="http://www.w3.org/2000/09/xmldsig#">testkey</ds:KeyName>
</xenc11:KeyDerivationMethod>
4 changes: 2 additions & 2 deletions tests/resources/xml/xenc11_OtherSource.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<xenc11:OtherSource xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" xmlns:ssp="urn:x-simplesamlphp:namespace" Algorithm="urn:x-simplesamlphp:algorithm">
<xenc11:Parameters ssp:attr1="testval1">
<xenc11:OtherSource xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" Algorithm="urn:x-simplesamlphp:algorithm">
<xenc11:Parameters xmlns:ssp="urn:x-simplesamlphp:namespace" ssp:attr1="testval1">
<ssp:AuthenticationContextDeclaration>
<ssp:Identification nym="verinymity">
<ssp:Extension>
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/xml/xenc11_PBKDF2-params.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<xenc11:PBKDF2-params xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" xmlns:ssp="urn:x-simplesamlphp:namespace">
<xenc11:PBKDF2-params xmlns:xenc11="http://www.w3.org/2009/xmlenc11#">
<xenc11:Salt>
<xenc11:OtherSource Algorithm="urn:x-simplesamlphp:algorithm">
<xenc11:Parameters ssp:attr1="testval1">
<xenc11:Parameters xmlns:ssp="urn:x-simplesamlphp:namespace" ssp:attr1="testval1">
<ssp:Chunk>Some</ssp:Chunk>
</xenc11:Parameters>
</xenc11:OtherSource>
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/xml/xenc11_Salt.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xenc11:Salt xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" xmlns:ssp="urn:x-simplesamlphp:namespace">
<xenc11:Salt xmlns:xenc11="http://www.w3.org/2009/xmlenc11#">
<xenc11:OtherSource Algorithm="urn:x-simplesamlphp:algorithm">
<xenc11:Parameters ssp:attr1="testval1">
<xenc11:Parameters xmlns:ssp="urn:x-simplesamlphp:namespace" ssp:attr1="testval1">
<ssp:Chunk>Some</ssp:Chunk>
</xenc11:Parameters>
</xenc11:OtherSource>
Expand Down
Loading
Loading