I am trying to add an electronic signature to a PDF document.
I generated the certificate with CyptoDemo (64-bit) “Generate Certificate” using the following settings:
Signature algorithm: RSASA v1.5
Hash function: SHA256
Key length: 256
Key and crt files are generated.
To sign the PDF, I go to ‘Generate adES’ with the following parameters:
Signature format : PAdES
The generation crashes:
File : PAdESObj.pas :
** function TPAdES.ComputeSize(s: string; n: string): string; .. while (J <= K) and (TryStrToInt(Result[J], I) = true) do Inc(J); ..
error : 'Le projet CryptoDemo.exe a déclenché la classe d'exception ERangeError avec le message 'Erreur de vérification d'étendue'.'
then
** function TPAdES.FirstPart(ts: TStringList): string; .. while (i > 0) and (FNumberObj[i] <> ' ') do begin temp := FNumberObj[i] + temp; i := i - 1; end;
error : 'Le projet CryptoDemo.exe a déclenché la classe d'exception ERangeError avec le message 'Erreur de vérification d'étendue'.'