|
@@ -29,6 +29,7 @@ uses
|
|
ClpIGlvTypeBEndomorphism,
|
|
ClpIGlvTypeBEndomorphism,
|
|
ClpSecObjectIdentifiers,
|
|
ClpSecObjectIdentifiers,
|
|
ClpCryptoLibTypes,
|
|
ClpCryptoLibTypes,
|
|
|
|
+ ClpECCompUtilities,
|
|
ClpBigInteger,
|
|
ClpBigInteger,
|
|
ClpECC,
|
|
ClpECC,
|
|
ClpIECC,
|
|
ClpIECC,
|
|
@@ -36,6 +37,8 @@ uses
|
|
ClpIX9ECC,
|
|
ClpIX9ECC,
|
|
ClpIAsn1Objects,
|
|
ClpIAsn1Objects,
|
|
ClpGlvTypeBEndomorphism,
|
|
ClpGlvTypeBEndomorphism,
|
|
|
|
+ ClpIScalarSplitParameters,
|
|
|
|
+ ClpScalarSplitParameters,
|
|
ClpX9ECParameters,
|
|
ClpX9ECParameters,
|
|
ClpIX9ECParameters,
|
|
ClpIX9ECParameters,
|
|
ClpX9ECParametersHolder,
|
|
ClpX9ECParametersHolder,
|
|
@@ -63,6 +66,9 @@ type
|
|
const p: IGlvTypeBParameters): IECCurve; static; inline;
|
|
const p: IGlvTypeBParameters): IECCurve; static; inline;
|
|
class function FromHex(const Hex: String): TBigInteger; static; inline;
|
|
class function FromHex(const Hex: String): TBigInteger; static; inline;
|
|
|
|
|
|
|
|
+ class function ConfigureBasepoint(const curve: IECCurve;
|
|
|
|
+ const encoding: String): IX9ECPoint; static;
|
|
|
|
+
|
|
class procedure Boot(); static;
|
|
class procedure Boot(); static;
|
|
class constructor CreateSecNamedCurves();
|
|
class constructor CreateSecNamedCurves();
|
|
class destructor DestroySecNamedCurves();
|
|
class destructor DestroySecNamedCurves();
|
|
@@ -347,7 +353,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(113);
|
|
|
|
|
|
+ M = Int32(113);
|
|
Fk = Int32(9);
|
|
Fk = Int32(9);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -368,7 +374,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(113);
|
|
|
|
|
|
+ M = Int32(113);
|
|
Fk = Int32(9);
|
|
Fk = Int32(9);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -389,10 +395,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(131);
|
|
|
|
- Fk1 = Int32(2);
|
|
|
|
- Fk2 = Int32(3);
|
|
|
|
- Fk3 = Int32(8);
|
|
|
|
|
|
+ M = Int32(131);
|
|
|
|
+ K1 = Int32(2);
|
|
|
|
+ K2 = Int32(3);
|
|
|
|
+ K3 = Int32(8);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -412,10 +418,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(131);
|
|
|
|
- Fk1 = Int32(2);
|
|
|
|
- Fk2 = Int32(3);
|
|
|
|
- Fk3 = Int32(8);
|
|
|
|
|
|
+ M = Int32(131);
|
|
|
|
+ K1 = Int32(2);
|
|
|
|
+ K2 = Int32(3);
|
|
|
|
+ K3 = Int32(8);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -435,10 +441,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(163);
|
|
|
|
- Fk1 = Int32(3);
|
|
|
|
- Fk2 = Int32(6);
|
|
|
|
- Fk3 = Int32(7);
|
|
|
|
|
|
+ M = Int32(163);
|
|
|
|
+ K1 = Int32(3);
|
|
|
|
+ K2 = Int32(6);
|
|
|
|
+ K3 = Int32(7);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -458,10 +464,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(163);
|
|
|
|
- Fk1 = Int32(3);
|
|
|
|
- Fk2 = Int32(6);
|
|
|
|
- Fk3 = Int32(7);
|
|
|
|
|
|
+ M = Int32(163);
|
|
|
|
+ K1 = Int32(3);
|
|
|
|
+ K2 = Int32(6);
|
|
|
|
+ K3 = Int32(7);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -481,10 +487,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(163);
|
|
|
|
- Fk1 = Int32(3);
|
|
|
|
- Fk2 = Int32(6);
|
|
|
|
- Fk3 = Int32(7);
|
|
|
|
|
|
+ M = Int32(163);
|
|
|
|
+ K1 = Int32(3);
|
|
|
|
+ K2 = Int32(6);
|
|
|
|
+ K3 = Int32(7);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -504,7 +510,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(193);
|
|
|
|
|
|
+ M = Int32(193);
|
|
Fk = Int32(15);
|
|
Fk = Int32(15);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -525,7 +531,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(193);
|
|
|
|
|
|
+ M = Int32(193);
|
|
Fk = Int32(15);
|
|
Fk = Int32(15);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -546,7 +552,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(233);
|
|
|
|
|
|
+ M = Int32(233);
|
|
Fk = Int32(74);
|
|
Fk = Int32(74);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -567,7 +573,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(233);
|
|
|
|
|
|
+ M = Int32(233);
|
|
Fk = Int32(74);
|
|
Fk = Int32(74);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -588,7 +594,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(239);
|
|
|
|
|
|
+ M = Int32(239);
|
|
Fk = Int32(158);
|
|
Fk = Int32(158);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -609,10 +615,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(283);
|
|
|
|
- Fk1 = Int32(5);
|
|
|
|
- Fk2 = Int32(7);
|
|
|
|
- Fk3 = Int32(12);
|
|
|
|
|
|
+ M = Int32(283);
|
|
|
|
+ K1 = Int32(5);
|
|
|
|
+ K2 = Int32(7);
|
|
|
|
+ K3 = Int32(12);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -632,10 +638,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(283);
|
|
|
|
- Fk1 = Int32(5);
|
|
|
|
- Fk2 = Int32(7);
|
|
|
|
- Fk3 = Int32(12);
|
|
|
|
|
|
+ M = Int32(283);
|
|
|
|
+ K1 = Int32(5);
|
|
|
|
+ K2 = Int32(7);
|
|
|
|
+ K3 = Int32(12);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -655,7 +661,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(409);
|
|
|
|
|
|
+ M = Int32(409);
|
|
Fk = Int32(87);
|
|
Fk = Int32(87);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -676,7 +682,7 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(409);
|
|
|
|
|
|
+ M = Int32(409);
|
|
Fk = Int32(87);
|
|
Fk = Int32(87);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
@@ -697,10 +703,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(571);
|
|
|
|
- Fk1 = Int32(2);
|
|
|
|
- Fk2 = Int32(5);
|
|
|
|
- Fk3 = Int32(10);
|
|
|
|
|
|
+ M = Int32(571);
|
|
|
|
+ K1 = Int32(2);
|
|
|
|
+ K2 = Int32(5);
|
|
|
|
+ K3 = Int32(10);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -720,10 +726,10 @@ type
|
|
|
|
|
|
strict private
|
|
strict private
|
|
const
|
|
const
|
|
- Fm = Int32(571);
|
|
|
|
- Fk1 = Int32(2);
|
|
|
|
- Fk2 = Int32(5);
|
|
|
|
- Fk3 = Int32(10);
|
|
|
|
|
|
+ M = Int32(571);
|
|
|
|
+ K1 = Int32(2);
|
|
|
|
+ K2 = Int32(5);
|
|
|
|
+ K3 = Int32(10);
|
|
|
|
|
|
strict protected
|
|
strict protected
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
function CreateParameters(): IX9ECParameters; override;
|
|
@@ -739,6 +745,13 @@ implementation
|
|
|
|
|
|
{ TSecNamedCurves }
|
|
{ TSecNamedCurves }
|
|
|
|
|
|
|
|
+class function TSecNamedCurves.ConfigureBasepoint(const curve: IECCurve;
|
|
|
|
+ const encoding: String): IX9ECPoint;
|
|
|
|
+begin
|
|
|
|
+ result := TX9ECPoint.Create(curve, THex.Decode(encoding));
|
|
|
|
+ TWnafUtilities.ConfigureBasepoint(result.Point);
|
|
|
|
+end;
|
|
|
|
+
|
|
class procedure TSecNamedCurves.DefineCurve(const name: String;
|
|
class procedure TSecNamedCurves.DefineCurve(const name: String;
|
|
const oid: IDerObjectIdentifier; const holder: IX9ECParametersHolder);
|
|
const oid: IDerObjectIdentifier; const holder: IX9ECParametersHolder);
|
|
begin
|
|
begin
|
|
@@ -922,9 +935,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '09487239995A5EE76B55F9C2F098' +
|
|
|
|
- 'A89CE5AF8724C0A23E0E0FF77500'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0409487239995A5EE76B55F9C2F098A89CE5AF8724C0A23E0E0FF77500');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -952,9 +964,8 @@ begin
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '4BA30AB5E892B4E1649DD0928643' +
|
|
|
|
- 'ADCD46F5882E3747DEF36E956E97'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '044BA30AB5E892B4E1649DD0928643ADCD46F5882E3747DEF36E956E97');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -982,9 +993,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '161FF7528B899B2D0C28607CA52C5B86' +
|
|
|
|
- 'CF5AC8395BAFEB13C02DA292DDED7A83'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04161FF7528B899B2D0C28607CA52C5B86CF5AC8395BAFEB13C02DA292DDED7A83');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1012,9 +1022,8 @@ begin
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '7B6AA5D85E572983E6FB32A7CDEBC140' +
|
|
|
|
- '27B6916A894D3AEE7106FE805FC34B44'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '047B6AA5D85E572983E6FB32A7CDEBC14027B6916A894D3AEE7106FE805FC34B44');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1045,19 +1054,20 @@ begin
|
|
glv := TGlvTypeBParameters.Create
|
|
glv := TGlvTypeBParameters.Create
|
|
(TBigInteger.Create('9ba48cba5ebcb9b6bd33b92830b2a2e0e192f10a', 16),
|
|
(TBigInteger.Create('9ba48cba5ebcb9b6bd33b92830b2a2e0e192f10a', 16),
|
|
TBigInteger.Create('c39c6c3b3a36d7701b9c71a1f5804ae5d0003f4', 16),
|
|
TBigInteger.Create('c39c6c3b3a36d7701b9c71a1f5804ae5d0003f4', 16),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
|
|
+
|
|
|
|
+ TScalarSplitParameters.Create(TCryptoLibGenericArray<TBigInteger>.Create
|
|
(TBigInteger.Create('9162fbe73984472a0a9e', 16),
|
|
(TBigInteger.Create('9162fbe73984472a0a9e', 16),
|
|
TBigInteger.Create('-96341f1138933bc2f505', 16)),
|
|
TBigInteger.Create('-96341f1138933bc2f505', 16)),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
- (TBigInteger.Create('127971af8721782ecffa3', 16),
|
|
|
|
- TBigInteger.Create('9162fbe73984472a0a9e', 16)),
|
|
|
|
- TBigInteger.Create('9162fbe73984472a0a9d0590', 16),
|
|
|
|
- TBigInteger.Create('96341f1138933bc2f503fd44', 16), 176);
|
|
|
|
|
|
+
|
|
|
|
+ TCryptoLibGenericArray<TBigInteger>.Create(TBigInteger.Create
|
|
|
|
+ ('127971af8721782ecffa3', 16), TBigInteger.Create('9162fbe73984472a0a9e',
|
|
|
|
+ 16)), TBigInteger.Create('9162fbe73984472a0a9d0590', 16),
|
|
|
|
+ TBigInteger.Create('96341f1138933bc2f503fd44', 16), 176)
|
|
|
|
+ as IScalarSplitParameters);
|
|
|
|
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '3B4C382CE37AA192A4019E763036F4F5DD4D7EBB' +
|
|
|
|
- '938CF935318FDCED6BC28286531733C3F03C4FEE'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '043B4C382CE37AA192A4019E763036F4F5DD4D7EBB938CF935318FDCED6BC28286531733C3F03C4FEE');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1085,9 +1095,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '4A96B5688EF573284664698968C38BB913CBFC82' +
|
|
|
|
- '23A628553168947D59DCC912042351377AC5FB32'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '044A96B5688EF573284664698968C38BB913CBFC8223A628553168947D59DCC912042351377AC5FB32');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1115,9 +1124,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '52DCB034293A117E1F4FF11B30F7199D3144CE6D' +
|
|
|
|
- 'FEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0452DCB034293A117E1F4FF11B30F7199D3144CE6DFEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1148,19 +1156,20 @@ begin
|
|
glv := TGlvTypeBParameters.Create
|
|
glv := TGlvTypeBParameters.Create
|
|
(TBigInteger.Create('bb85691939b869c1d087f601554b96b80cb4f55b35f433c2', 16),
|
|
(TBigInteger.Create('bb85691939b869c1d087f601554b96b80cb4f55b35f433c2', 16),
|
|
TBigInteger.Create('3d84f26c12238d7b4f3d516613c1759033b1a5800175d0b1', 16),
|
|
TBigInteger.Create('3d84f26c12238d7b4f3d516613c1759033b1a5800175d0b1', 16),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
|
|
+
|
|
|
|
+ TScalarSplitParameters.Create(TCryptoLibGenericArray<TBigInteger>.Create
|
|
(TBigInteger.Create('71169be7330b3038edb025f1', 16),
|
|
(TBigInteger.Create('71169be7330b3038edb025f1', 16),
|
|
TBigInteger.Create('-b3fb3400dec5c4adceb8655c', 16)),
|
|
TBigInteger.Create('-b3fb3400dec5c4adceb8655c', 16)),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
- (TBigInteger.Create('12511cfe811d0f4e6bc688b4d', 16),
|
|
|
|
|
|
+ TCryptoLibGenericArray<TBigInteger>.Create(TBigInteger.Create
|
|
|
|
+ ('12511cfe811d0f4e6bc688b4d', 16),
|
|
TBigInteger.Create('71169be7330b3038edb025f1', 16)),
|
|
TBigInteger.Create('71169be7330b3038edb025f1', 16)),
|
|
TBigInteger.Create('71169be7330b3038edb025f1d0f9', 16),
|
|
TBigInteger.Create('71169be7330b3038edb025f1d0f9', 16),
|
|
- TBigInteger.Create('b3fb3400dec5c4adceb8655d4c94', 16), 208);
|
|
|
|
|
|
+ TBigInteger.Create('b3fb3400dec5c4adceb8655d4c94', 16), 208)
|
|
|
|
+ as IScalarSplitParameters);
|
|
|
|
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + 'DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D' +
|
|
|
|
- '9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1188,9 +1197,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012' +
|
|
|
|
- '07192B95FFC8DA78631011ED6B24CDD573F977A11E794811'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF101207192B95FFC8DA78631011ED6B24CDD573F977A11E794811');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1223,20 +1231,19 @@ begin
|
|
('fe0e87005b4e83761908c5131d552a850b3f58b749c37cf5b84d6768', 16),
|
|
('fe0e87005b4e83761908c5131d552a850b3f58b749c37cf5b84d6768', 16),
|
|
TBigInteger.Create
|
|
TBigInteger.Create
|
|
('60dcd2104c4cbc0be6eeefc2bdd610739ec34e317f9b33046c9e4788', 16),
|
|
('60dcd2104c4cbc0be6eeefc2bdd610739ec34e317f9b33046c9e4788', 16),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
|
|
+ TScalarSplitParameters.Create(TCryptoLibGenericArray<TBigInteger>.Create
|
|
(TBigInteger.Create('6b8cf07d4ca75c88957d9d670591', 16),
|
|
(TBigInteger.Create('6b8cf07d4ca75c88957d9d670591', 16),
|
|
TBigInteger.Create('-b8adf1378a6eb73409fa6c9c637d', 16)),
|
|
TBigInteger.Create('-b8adf1378a6eb73409fa6c9c637d', 16)),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
- (TBigInteger.Create('1243ae1b4d71613bc9f780a03690e', 16),
|
|
|
|
|
|
+ TCryptoLibGenericArray<TBigInteger>.Create(TBigInteger.Create
|
|
|
|
+ ('1243ae1b4d71613bc9f780a03690e', 16),
|
|
TBigInteger.Create('6b8cf07d4ca75c88957d9d670591', 16)),
|
|
TBigInteger.Create('6b8cf07d4ca75c88957d9d670591', 16)),
|
|
TBigInteger.Create('6b8cf07d4ca75c88957d9d67059037a4', 16),
|
|
TBigInteger.Create('6b8cf07d4ca75c88957d9d67059037a4', 16),
|
|
- TBigInteger.Create('b8adf1378a6eb73409fa6c9c637ba7f5', 16), 240);
|
|
|
|
|
|
+ TBigInteger.Create('b8adf1378a6eb73409fa6c9c637ba7f5', 16), 240)
|
|
|
|
+ as IScalarSplitParameters);
|
|
|
|
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- 'A1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C' +
|
|
|
|
- '7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04A1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1264,10 +1271,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- 'B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21' +
|
|
|
|
- 'BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1302,20 +1307,20 @@ begin
|
|
('7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee', 16),
|
|
('7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee', 16),
|
|
TBigInteger.Create
|
|
TBigInteger.Create
|
|
('5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72', 16),
|
|
('5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72', 16),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
|
|
+
|
|
|
|
+ TScalarSplitParameters.Create(TCryptoLibGenericArray<TBigInteger>.Create
|
|
(TBigInteger.Create('3086d221a7d46bcde86c90e49284eb15', 16),
|
|
(TBigInteger.Create('3086d221a7d46bcde86c90e49284eb15', 16),
|
|
TBigInteger.Create('-e4437ed6010e88286f547fa90abfe4c3', 16)),
|
|
TBigInteger.Create('-e4437ed6010e88286f547fa90abfe4c3', 16)),
|
|
- TCryptoLibGenericArray<TBigInteger>.Create
|
|
|
|
- (TBigInteger.Create('114ca50f7a8e2f3f657c1108d9d44cfd8', 16),
|
|
|
|
|
|
+ TCryptoLibGenericArray<TBigInteger>.Create(TBigInteger.Create
|
|
|
|
+ ('114ca50f7a8e2f3f657c1108d9d44cfd8', 16),
|
|
TBigInteger.Create('3086d221a7d46bcde86c90e49284eb15', 16)),
|
|
TBigInteger.Create('3086d221a7d46bcde86c90e49284eb15', 16)),
|
|
TBigInteger.Create('3086d221a7d46bcde86c90e49284eb153dab', 16),
|
|
TBigInteger.Create('3086d221a7d46bcde86c90e49284eb153dab', 16),
|
|
- TBigInteger.Create('e4437ed6010e88286f547fa90abfe4c42212', 16), 272);
|
|
|
|
|
|
+ TBigInteger.Create('e4437ed6010e88286f547fa90abfe4c42212', 16), 272)
|
|
|
|
+ as IScalarSplitParameters);
|
|
|
|
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
curve := ConfigureCurveGlv(TFpCurve.Create(p, a, b, n, h) as IFpCurve, glv);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798' +
|
|
|
|
- '483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0479BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1347,10 +1352,8 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296' +
|
|
|
|
- '4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5'));
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '046B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C2964FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1382,11 +1385,9 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- 'AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7'
|
|
|
|
- + '3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F')
|
|
|
|
- );
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + 'AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7'
|
|
|
|
+ + '3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1418,11 +1419,9 @@ begin
|
|
h := TBigInteger.One;
|
|
h := TBigInteger.One;
|
|
|
|
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
curve := ConfigureCurve(TFpCurve.Create(p, a, b, n, h) as IFpCurve);
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66'
|
|
|
|
- + '011839296A789A3BC0045C8A5FB42C7D1BD998F54449579B446817AFBD17273E662C97EE72995EF42640C550B9013FAD0761353C7086A272C24088BE94769FD16650')
|
|
|
|
- );
|
|
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66'
|
|
|
|
+ + '011839296A789A3BC0045C8A5FB42C7D1BD998F54449579B446817AFBD17273E662C97EE72995EF42640C550B9013FAD0761353C7086A272C24088BE94769FD16650');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1447,10 +1446,9 @@ begin
|
|
n := FromHex('0100000000000000D9CCEC8A39E56F');
|
|
n := FromHex('0100000000000000D9CCEC8A39E56F');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '009D73616F35F4AB1407D73562C10F' +
|
|
|
|
- '00A52830277958EE84D1315ED31886'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04009D73616F35F4AB1407D73562C10F00A52830277958EE84D1315ED31886');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1475,10 +1473,9 @@ begin
|
|
n := FromHex('010000000000000108789B2496AF93');
|
|
n := FromHex('010000000000000108789B2496AF93');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '01A57A6A7B26CA5EF52FCDB8164797' +
|
|
|
|
- '00B3ADC94ED1FE674C06E695BABA1D'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0401A57A6A7B26CA5EF52FCDB816479700B3ADC94ED1FE674C06E695BABA1D');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1503,10 +1500,10 @@ begin
|
|
n := FromHex('0400000000000000023123953A9464B54D');
|
|
n := FromHex('0400000000000000023123953A9464B54D');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '0081BAF91FDF9833C40F9C181343638399' +
|
|
|
|
- '078C6E7EA38C001F73C8134B1B4EF9E150'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '040081BAF91FDF9833C40F9C181343638399078C6E7EA38C001F73C8134B1B4EF9E150');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1531,10 +1528,10 @@ begin
|
|
n := FromHex('0400000000000000016954A233049BA98F');
|
|
n := FromHex('0400000000000000016954A233049BA98F');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '0356DCD8F2F95031AD652D23951BB366A8' +
|
|
|
|
- '0648F06D867940A5366D9E265DE9EB240F'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '040356DCD8F2F95031AD652D23951BB366A80648F06D867940A5366D9E265DE9EB240F');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1559,10 +1556,10 @@ begin
|
|
n := FromHex('04000000000000000000020108A2E0CC0D99F8A5EF');
|
|
n := FromHex('04000000000000000000020108A2E0CC0D99F8A5EF');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '02FE13C0537BBC11ACAA07D793DE4E6D5E5C94EEE8' +
|
|
|
|
- '0289070FB05D38FF58321F2E800536D538CCDAA3D9'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0402FE13C0537BBC11ACAA07D793DE4E6D5E5C94EEE80289070FB05D38FF58321F2E800536D538CCDAA3D9');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1587,10 +1584,10 @@ begin
|
|
n := FromHex('03FFFFFFFFFFFFFFFFFFFF48AAB689C29CA710279B');
|
|
n := FromHex('03FFFFFFFFFFFFFFFFFFFF48AAB689C29CA710279B');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '0369979697AB43897789566789567F787A7876A654' +
|
|
|
|
- '00435EDB42EFAFB2989D51FEFCE3C80988F41FF883'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '040369979697AB43897789566789567F787A7876A65400435EDB42EFAFB2989D51FEFCE3C80988F41FF883');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1615,10 +1612,10 @@ begin
|
|
n := FromHex('040000000000000000000292FE77E70C12A4234C33');
|
|
n := FromHex('040000000000000000000292FE77E70C12A4234C33');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '03F0EBA16286A2D57EA0991168D4994637E8343E36' +
|
|
|
|
- '00D51FBC6C71A0094FA2CDD545B11C5C0C797324F1'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0403F0EBA16286A2D57EA0991168D4994637E8343E3600D51FBC6C71A0094FA2CDD545B11C5C0C797324F1');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1643,10 +1640,9 @@ begin
|
|
n := FromHex('01000000000000000000000000C7F34A778F443ACC920EBA49');
|
|
n := FromHex('01000000000000000000000000C7F34A778F443ACC920EBA49');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '01F481BC5F0FF84A74AD6CDF6FDEF4BF6179625372D8C0C5E1' +
|
|
|
|
- '0025E399F2903712CCF3EA9E3A1AD17FB0B3201B6AF7CE1B05'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0401F481BC5F0FF84A74AD6CDF6FDEF4BF6179625372D8C0C5E10025E399F2903712CCF3EA9E3A1AD17FB0B3201B6AF7CE1B05');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1671,10 +1667,9 @@ begin
|
|
n := FromHex('010000000000000000000000015AAB561B005413CCD4EE99D5');
|
|
n := FromHex('010000000000000000000000015AAB561B005413CCD4EE99D5');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' + '00D9B67D192E0367C803F39E1A7E82CA14A651350AAE617E8F' +
|
|
|
|
- '01CE94335607C304AC29E7DEFBD9CA01F596F927224CDECF6C'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0400D9B67D192E0367C803F39E1A7E82CA14A651350AAE617E8F01CE94335607C304AC29E7DEFBD9CA01F596F927224CDECF6C');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1699,11 +1694,9 @@ begin
|
|
n := FromHex('8000000000000000000000000000069D5BB915BCD46EFB1AD5F173ABDF');
|
|
n := FromHex('8000000000000000000000000000069D5BB915BCD46EFB1AD5F173ABDF');
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '017232BA853A7E731AF129F22FF4149563A419C26BF50A4C9D6EEFAD6126' +
|
|
|
|
- '01DB537DECE819B7F70F555A67C427A8CD9BF18AEB9B56E0C11056FAE6A3'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04017232BA853A7E731AF129F22FF4149563A419C26BF50A4C9D6EEFAD612601DB537DECE819B7F70F555A67C427A8CD9BF18AEB9B56E0C11056FAE6A3');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1728,11 +1721,9 @@ begin
|
|
n := FromHex('01000000000000000000000000000013E974E72F8A6922031D2603CFE0D7');
|
|
n := FromHex('01000000000000000000000000000013E974E72F8A6922031D2603CFE0D7');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '00FAC9DFCBAC8313BB2139F1BB755FEF65BC391F8B36F8F8EB7371FD558B' +
|
|
|
|
- '01006A08A41903350678E58528BEBF8A0BEFF867A7CA36716F7E01F81052'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0400FAC9DFCBAC8313BB2139F1BB755FEF65BC391F8B36F8F8EB7371FD558B01006A08A41903350678E58528BEBF8A0BEFF867A7CA36716F7E01F81052');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1757,11 +1748,9 @@ begin
|
|
n := FromHex('2000000000000000000000000000005A79FEC67CB6E91F1C1DA800E478A5');
|
|
n := FromHex('2000000000000000000000000000005A79FEC67CB6E91F1C1DA800E478A5');
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '29A0B6A887A983E9730988A68727A8B2D126C44CC2CC7B2A6555193035DC' +
|
|
|
|
- '76310804F12E549BDB011C103089E73510ACB275FC312A5DC6B76553F0CA'));
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '0429A0B6A887A983E9730988A68727A8B2D126C44CC2CC7B2A6555193035DC76310804F12E549BDB011C103089E73510ACB275FC312A5DC6B76553F0CA');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1787,12 +1776,11 @@ begin
|
|
('01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE9AE2ED07577265DFF7F94451E061E163C61');
|
|
('01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE9AE2ED07577265DFF7F94451E061E163C61');
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '0503213F78CA44883F1A3B8162F188E553CD265F23C1567A16876913B0C2AC2458492836' +
|
|
|
|
- '01CCDA380F1C9E318D90F95D07E5426FE87E45C0E8184698E45962364E34116177DD2259')
|
|
|
|
- );
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '0503213F78CA44883F1A3B8162F188E553CD265F23C1567A16876913B0C2AC2458492836'
|
|
|
|
+ + '01CCDA380F1C9E318D90F95D07E5426FE87E45C0E8184698E45962364E34116177DD2259');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1819,12 +1807,11 @@ begin
|
|
('03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEF90399660FC938A90165B042A7CEFADB307');
|
|
('03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEF90399660FC938A90165B042A7CEFADB307');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '05F939258DB7DD90E1934F8C70B0DFEC2EED25B8557EAC9C80E2E198F8CDBECD86B12053' +
|
|
|
|
- '03676854FE24141CB98FE6D4B20D02B4516FF702350EDDB0826779C813F0DF45BE8112F4')
|
|
|
|
- );
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '05F939258DB7DD90E1934F8C70B0DFEC2EED25B8557EAC9C80E2E198F8CDBECD86B12053'
|
|
|
|
+ + '03676854FE24141CB98FE6D4B20D02B4516FF702350EDDB0826779C813F0DF45BE8112F4');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1850,12 +1837,10 @@ begin
|
|
('7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE5F83B2D4EA20400EC4557D5ED3E3E7CA5B4B5C83B8E01E5FCF');
|
|
('7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE5F83B2D4EA20400EC4557D5ED3E3E7CA5B4B5C83B8E01E5FCF');
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '0060F05F658F49C1AD3AB1890F7184210EFD0987E307C84C27ACCFB8F9F67CC2C460189EB5AAAA62EE222EB1B35540CFE9023746'
|
|
|
|
- + '01E369050B7C4E42ACBA1DACBF04299C3460782F918EA427E6325165E9EA10E3DA5F6C42E9C55215AA9CA27A5863EC48D8E0286B')
|
|
|
|
- );
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '0060F05F658F49C1AD3AB1890F7184210EFD0987E307C84C27ACCFB8F9F67CC2C460189EB5AAAA62EE222EB1B35540CFE9023746'
|
|
|
|
+ + '01E369050B7C4E42ACBA1DACBF04299C3460782F918EA427E6325165E9EA10E3DA5F6C42E9C55215AA9CA27A5863EC48D8E0286B');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1882,12 +1867,10 @@ begin
|
|
('010000000000000000000000000000000000000000000000000001E2AAD6A612F33307BE5FA47C3C9E052F838164CD37D9A21173');
|
|
('010000000000000000000000000000000000000000000000000001E2AAD6A612F33307BE5FA47C3C9E052F838164CD37D9A21173');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '015D4860D088DDB3496B0C6064756260441CDE4AF1771D4DB01FFE5B34E59703DC255A868A1180515603AEAB60794E54BB7996A7'
|
|
|
|
- + '0061B1CFAB6BE5F32BBFA78324ED106A7636B9C5A7BD198D0158AA4F5488D08F38514F1FDF4B4F40D2181B3681C364BA0273C706')
|
|
|
|
- );
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, Fk, a, b, n, h) as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '015D4860D088DDB3496B0C6064756260441CDE4AF1771D4DB01FFE5B34E59703DC255A868A1180515603AEAB60794E54BB7996A7'
|
|
|
|
+ + '0061B1CFAB6BE5F32BBFA78324ED106A7636B9C5A7BD198D0158AA4F5488D08F38514F1FDF4B4F40D2181B3681C364BA0273C706');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1913,12 +1896,11 @@ begin
|
|
('020000000000000000000000000000000000000000000000000000000000000000000000131850E1F19A63E4B391A8DB917F4138B630D84BE5D639381E91DEB45CFE778F637C1001');
|
|
('020000000000000000000000000000000000000000000000000000000000000000000000131850E1F19A63E4B391A8DB917F4138B630D84BE5D639381E91DEB45CFE778F637C1001');
|
|
h := TBigInteger.ValueOf(4);
|
|
h := TBigInteger.ValueOf(4);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '026EB7A859923FBC82189631F8103FE4AC9CA2970012D5D46024804801841CA44370958493B205E647DA304DB4CEB08CBBD1BA39494776FB988B47174DCA88C7E2945283A01C8972'
|
|
|
|
- + '0349DC807F4FBF374F4AEADE3BCA95314DD58CEC9F307A54FFC61EFC006D8A2C9D4979C0AC44AEA74FBEBBB9F772AEDCB620B01A7BA7AF1B320430C8591984F601CD4C143EF1C7A3')
|
|
|
|
- );
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '026EB7A859923FBC82189631F8103FE4AC9CA2970012D5D46024804801841CA44370958493B205E647DA304DB4CEB08CBBD1BA39494776FB988B47174DCA88C7E2945283A01C8972'
|
|
|
|
+ + '0349DC807F4FBF374F4AEADE3BCA95314DD58CEC9F307A54FFC61EFC006D8A2C9D4979C0AC44AEA74FBEBBB9F772AEDCB620B01A7BA7AF1B320430C8591984F601CD4C143EF1C7A3');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|
|
@@ -1945,12 +1927,11 @@ begin
|
|
('03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE661CE18FF55987308059B186823851EC7DD9CA1161DE93D5174D66E8382E9BB2FE84E47');
|
|
('03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE661CE18FF55987308059B186823851EC7DD9CA1161DE93D5174D66E8382E9BB2FE84E47');
|
|
h := TBigInteger.ValueOf(2);
|
|
h := TBigInteger.ValueOf(2);
|
|
|
|
|
|
- curve := TF2mCurve.Create(Fm, Fk1, Fk2, Fk3, a, b, n, h);
|
|
|
|
- G := TX9ECPoint.Create(curve,
|
|
|
|
- THex.Decode('04' +
|
|
|
|
- '0303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950F4C0D293CDD711A35B67FB1499AE60038614F1394ABFA3B4C850D927E1E7769C8EEC2D19'
|
|
|
|
- + '037BF27342DA639B6DCCFFFEB73D69D78C6C27A6009CBBCA1980F8533921E8A684423E43BAB08A576291AF8F461BB2A8B3531D2F0485C19B16E2F1516E23DD3C1A4827AF1B8AC15B')
|
|
|
|
- );
|
|
|
|
|
|
+ curve := ConfigureCurve(TF2mCurve.Create(M, K1, K2, K3, a, b, n, h)
|
|
|
|
+ as IF2mCurve);
|
|
|
|
+ G := ConfigureBasepoint(curve,
|
|
|
|
+ '04' + '0303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950F4C0D293CDD711A35B67FB1499AE60038614F1394ABFA3B4C850D927E1E7769C8EEC2D19'
|
|
|
|
+ + '037BF27342DA639B6DCCFFFEB73D69D78C6C27A6009CBBCA1980F8533921E8A684423E43BAB08A576291AF8F461BB2A8B3531D2F0485C19B16E2F1516E23DD3C1A4827AF1B8AC15B');
|
|
|
|
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
result := TX9ECParameters.Create(curve, G, n, h, S);
|
|
end;
|
|
end;
|