@@ -120,8 +120,8 @@ public function retrieveAuthenticationSignature(XmlDocument $document): Signatur
120120 $ publicKey = $ x509 ->getPublicKey ();
121121
122122 $ signature = $ this ->signatureFactory ->createSignatureXFromDetails (
123- $ publicKey ->getModulus (),
124- $ publicKey ->getExponent ()
123+ $ publicKey ->getExponent (),
124+ $ publicKey ->getModulus ()
125125 );
126126
127127 $ signature ->setCertificateContent ($ certificateContent );
@@ -134,8 +134,8 @@ public function retrieveAuthenticationSignature(XmlDocument $document): Signatur
134134 $ exponentValueDe = base64_decode ($ exponentValue );
135135
136136 $ signature = $ this ->signatureFactory ->createSignatureXFromDetails (
137- $ this ->bigIntegerFactory ->create ($ modulusValueDe , 256 ),
138- $ this ->bigIntegerFactory ->create ($ exponentValueDe , 256 )
137+ $ this ->bigIntegerFactory ->create ($ exponentValueDe , 256 ),
138+ $ this ->bigIntegerFactory ->create ($ modulusValueDe , 256 )
139139 );
140140 }
141141
@@ -163,8 +163,8 @@ public function retrieveEncryptionSignature(XmlData $document): SignatureInterfa
163163 $ publicKey = $ x509 ->getPublicKey ();
164164
165165 $ signature = $ this ->signatureFactory ->createSignatureEFromDetails (
166- $ publicKey ->getModulus (),
167- $ publicKey ->getExponent ()
166+ $ publicKey ->getExponent (),
167+ $ publicKey ->getModulus ()
168168 );
169169
170170 $ signature ->setCertificateContent ($ certificateContent );
@@ -177,8 +177,8 @@ public function retrieveEncryptionSignature(XmlData $document): SignatureInterfa
177177 $ exponentValueDe = base64_decode ($ exponentValue );
178178
179179 $ signature = $ this ->signatureFactory ->createSignatureEFromDetails (
180- $ this ->bigIntegerFactory ->create ($ modulusValueDe , 256 ),
181- $ this ->bigIntegerFactory ->create ($ exponentValueDe , 256 )
180+ $ this ->bigIntegerFactory ->create ($ exponentValueDe , 256 ),
181+ $ this ->bigIntegerFactory ->create ($ modulusValueDe , 256 )
182182 );
183183 }
184184
0 commit comments