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.