Digital Signature - SHA256 RSA
In order to fix this issue you may use
TScKey object directly as shown in an example:
uses ...ScBridge, ScUtils
...
var
Source, Signed :TBytes;
aComment: string;
Key: TScKey;
...
Key := TScKey.Create();
Key.ImportFrom('MyKeyFile.pem',Password,aComment);
...
Signed := Key.Sign(Source, haSHA2_256);
...
if Key.VerifySign(Source, Signed, haSHA2_256) = True then
//Sign is verified
...
Key.Free;
...
Please note: TScKey cannot sign files directly but only a TBytes buffers. Thus, you must fill Source before call TScKey.Sign.
Related Articles
How to Expedite Error Report Resolution
In addition to the standard procedure for submitting an Error Report, the following steps can significantly help us resolve the issue more quickly and efficiently. While the information provided in the original report is valuable, these additional ...
Can a Single License Be Shared by Two Users on a Remote Machine?
According to the company's End User License Agreement (EULA) policy, each purchased license provides a key that can be used for activation on two machines simultaneously. For more details, please refer to the following link: Devart EULA. It's ...