Skip to content

Commit cfbdcfe

Browse files
Renamed fixPssPadding to updateCmsForPssPadding
Small typo fixes in readme
1 parent eb56c99 commit cfbdcfe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Electronic Seals to digital sign PDF documents in pure PHP.
77
The API documentation can be found on the Cloud Signature Consortium website:
88
https://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.
1111
It 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
1414
environment and how the signature workflow works:
1515
https://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).

examples/async-demo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
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

src/Module.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)