|
@@ -23,7 +23,6 @@ interface
|
|
|
|
|
|
|
|
uses
|
|
uses
|
|
|
SysUtils,
|
|
SysUtils,
|
|
|
- Math,
|
|
|
|
|
Generics.Collections,
|
|
Generics.Collections,
|
|
|
HlpIHash,
|
|
HlpIHash,
|
|
|
ClpISigner,
|
|
ClpISigner,
|
|
@@ -31,10 +30,8 @@ uses
|
|
|
ClpISecureRandom,
|
|
ClpISecureRandom,
|
|
|
ClpICipherParameters,
|
|
ClpICipherParameters,
|
|
|
ClpIECSchnorrSigner,
|
|
ClpIECSchnorrSigner,
|
|
|
- ClpIAsymmetricKeyParameter,
|
|
|
|
|
ClpIParametersWithRandom,
|
|
ClpIParametersWithRandom,
|
|
|
ClpDerSequence,
|
|
ClpDerSequence,
|
|
|
- ClpIDerSequence,
|
|
|
|
|
ClpDerInteger,
|
|
ClpDerInteger,
|
|
|
ClpIDerInteger,
|
|
ClpIDerInteger,
|
|
|
ClpAsn1Object,
|
|
ClpAsn1Object,
|
|
@@ -300,7 +297,6 @@ function TECSchnorrSigner.Do_Sign(const pv_key: IECPrivateKeyParameters;
|
|
|
var
|
|
var
|
|
|
curve: IECCurve;
|
|
curve: IECCurve;
|
|
|
n, r, s, h, tempK: TBigInteger;
|
|
n, r, s, h, tempK: TBigInteger;
|
|
|
- size: Int32;
|
|
|
|
|
G, q: IECPoint;
|
|
G, q: IECPoint;
|
|
|
xQ, yQ, rQ, tempR, tempH: TCryptoLibByteArray;
|
|
xQ, yQ, rQ, tempR, tempH: TCryptoLibByteArray;
|
|
|
begin
|
|
begin
|
|
@@ -312,7 +308,6 @@ begin
|
|
|
curve := pv_key.parameters.curve;
|
|
curve := pv_key.parameters.curve;
|
|
|
n := curve.order;
|
|
n := curve.order;
|
|
|
G := pv_key.parameters.G;
|
|
G := pv_key.parameters.G;
|
|
|
- size := TBits.Asr32(curve.FieldSize, 3);
|
|
|
|
|
|
|
|
|
|
q := G.Multiply(k);
|
|
q := G.Multiply(k);
|
|
|
|
|
|