File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ Electronic Seals to digital sign PDF documents in pure PHP.
77The API documentation can be found on the Cloud Signature Consortium website:
88https://cloudsignatureconsortium.org/resources/download-api-specifications/
99
10- At the time of writing the module is tested with the eSigner CSC API from SSL.com and the Entrust CSC API.
10+ At the time of writing the module is tested with the eSigner CSC API from SSL.com and the Remote Signing Service CSC API from Entrust .
1111It currently does not support all features or variances that may appear in other API implementations.
1212
13- For usage at ssl.com you can follow this integration guide to get a better understanding of how to setup a test
13+ For usage with ssl.com you can follow this integration guide to get a better understanding of how to setup a test
1414environment and how the signature workflow works:
1515https://www.ssl.com/guide/integration-guide-testing-remote-signing-with-esigner-csc-api/
1616(instead of using postman you can use this module directly and sign your PDF documents locally).
Original file line number Diff line number Diff line change 143143 $ module
144144 );
145145 if ($ signAlgorithm === Digest::RSA_PSS_ALGORITHM ) {
146- $ signatureAlgorithmParameters = Module::fixPssPadding ($ this ->padesModule );
146+ $ signatureAlgorithmParameters = Module::updateCmsForPssPadding ($ this ->padesModule );
147147 }
148148 $ hashData = base64_encode (hash ($ hashAlgorithm , $ module ->getDataToSign ($ tmpDocument ->getHashFile ()), true ));
149149
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public static function findHashAndSignAlgorithm(string $signatureAlgorithmOid):
5858 * @return Asn1Element
5959 * @throws \SetaPDF_Exception_NotImplemented
6060 */
61- public static function fixPssPadding (
61+ public static function updateCmsForPssPadding (
6262 SetaPDF_Signer_Signature_Module_Pades $ padesModule
6363 ): Asn1Element {
6464 throw new \SetaPDF_Exception_NotImplemented (
@@ -363,7 +363,7 @@ public function createSignature(SetaPDF_Core_Reader_FilePath $tmpPath)
363363 $ signatureAlgorithmParameters = null ;
364364
365365 if ($ this ->signAlgorithm === Digest::RSA_PSS_ALGORITHM ) {
366- $ signatureAlgorithmParameters = self ::fixPssPadding ($ this ->padesModule );
366+ $ signatureAlgorithmParameters = self ::updateCmsForPssPadding ($ this ->padesModule );
367367 }
368368
369369 $ hashData = \base64_encode (hash ($ padesDigest , $ this ->padesModule ->getDataToSign ($ tmpPath ), true ));
You can’t perform that action at this time.
0 commit comments