diff --git a/src/Handlers/OrderDataHandlerV2.php b/src/Handlers/OrderDataHandlerV2.php index 6b39009c..f3c2e355 100644 --- a/src/Handlers/OrderDataHandlerV2.php +++ b/src/Handlers/OrderDataHandlerV2.php @@ -120,8 +120,8 @@ public function retrieveAuthenticationSignature(XmlDocument $document): Signatur $publicKey = $x509->getPublicKey(); $signature = $this->signatureFactory->createSignatureXFromDetails( - $publicKey->getModulus(), - $publicKey->getExponent() + $publicKey->getExponent(), + $publicKey->getModulus() ); $signature->setCertificateContent($certificateContent); @@ -134,8 +134,8 @@ public function retrieveAuthenticationSignature(XmlDocument $document): Signatur $exponentValueDe = base64_decode($exponentValue); $signature = $this->signatureFactory->createSignatureXFromDetails( - $this->bigIntegerFactory->create($modulusValueDe, 256), - $this->bigIntegerFactory->create($exponentValueDe, 256) + $this->bigIntegerFactory->create($exponentValueDe, 256), + $this->bigIntegerFactory->create($modulusValueDe, 256) ); } @@ -163,8 +163,8 @@ public function retrieveEncryptionSignature(XmlData $document): SignatureInterfa $publicKey = $x509->getPublicKey(); $signature = $this->signatureFactory->createSignatureEFromDetails( - $publicKey->getModulus(), - $publicKey->getExponent() + $publicKey->getExponent(), + $publicKey->getModulus() ); $signature->setCertificateContent($certificateContent); @@ -177,8 +177,8 @@ public function retrieveEncryptionSignature(XmlData $document): SignatureInterfa $exponentValueDe = base64_decode($exponentValue); $signature = $this->signatureFactory->createSignatureEFromDetails( - $this->bigIntegerFactory->create($modulusValueDe, 256), - $this->bigIntegerFactory->create($exponentValueDe, 256) + $this->bigIntegerFactory->create($exponentValueDe, 256), + $this->bigIntegerFactory->create($modulusValueDe, 256) ); } diff --git a/src/Handlers/OrderDataHandlerV30.php b/src/Handlers/OrderDataHandlerV30.php index 2a887232..8cb1836b 100644 --- a/src/Handlers/OrderDataHandlerV30.php +++ b/src/Handlers/OrderDataHandlerV30.php @@ -84,8 +84,8 @@ public function retrieveAuthenticationSignature(XmlDocument $document): Signatur $publicKey = $x509->getPublicKey(); $signature = $this->signatureFactory->createSignatureXFromDetails( - $publicKey->getModulus(), - $publicKey->getExponent() + $publicKey->getExponent(), + $publicKey->getModulus() ); $signature->setCertificateContent($certificateContent); @@ -117,8 +117,8 @@ public function retrieveEncryptionSignature(XmlDocument $document): SignatureInt $publicKey = $x509->getPublicKey(); $signature = $this->signatureFactory->createSignatureEFromDetails( - $publicKey->getModulus(), - $publicKey->getExponent() + $publicKey->getExponent(), + $publicKey->getModulus() ); $signature->setCertificateContent($certificateContent);