Hi,
I buyed the crypto pack to sign a string with RSA 2048, but it take 1 seconde for that. I'm surprised.
I tested the same thing in c# and it it's instant.
Can you help me to increase the speed?
my code like that :
var
modulus, publicExponent, privateExponent:AnsiString;
Conv: TConvert;
begin
modulus:= '..... INIT .....'
publicExponent:='....'
privateExponent:='...';
Conv:=TConvert.Create();
Conv.AType := base64url;
RSA:= TRSAEncSign.Create(nil);
RSA.KeyLength := kl2048;
RSA.OutputFormat := base64url;
RSA.Unicode := yesUni;
RSA.Modulus := Conv.KeyRSAOpenSSLToKeyTRSAEncSign(modulus);
RSA.PublicExponent := Conv.KeyRSAOpenSSLToKeyTRSAEncSign(publicExponent);
RSA.PrivateExponent := Conv.KeyRSAOpenSSLToKeyTRSAEncSign(privateExponent);
RSA.signType := TRSASignType.pss;
Conv.Free;
RSA.Sign('string to sign');