Ugochukwu Mmaduekwe 3 дней назад
Родитель
Сommit
3200bf33c5
27 измененных файлов с 12 добавлено и 57 удалено
  1. 0 1
      CryptoLib.Tests/src/Asn1/X9Tests.pas
  2. 0 1
      CryptoLib.Tests/src/Math/EC/Custom/Sec/SecP256R1FieldTests.pas
  3. 0 1
      CryptoLib.Tests/src/Others/NamedCurveTests.pas
  4. 0 1
      CryptoLib.Tests/src/Others/SignerUtilitiesTests.pas
  5. 0 5
      CryptoLib/src/Crypto/EC/ClpCustomNamedCurves.pas
  6. 1 2
      CryptoLib/src/Interfaces/Asn1/X509/ClpIX509RsaAsn1Objects.pas
  7. 0 1
      CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP256K1Custom.pas
  8. 0 1
      CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP256R1Custom.pas
  9. 0 1
      CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP384R1Custom.pas
  10. 0 1
      CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP521R1Custom.pas
  11. 1 2
      CryptoLib/src/Interfaces/Math/EC/Endo/ClpIScalarSplitParameters.pas
  12. 1 2
      CryptoLib/src/Interfaces/Math/EC/Multiplier/ClpIFixedPointPreCompInfo.pas
  13. 1 2
      CryptoLib/src/Interfaces/Math/Field/ClpIFiniteField.pas
  14. 0 1
      CryptoLib/src/Math/EC/Abc/ClpTnaf.pas
  15. 7 10
      CryptoLib/src/Math/EC/ClpECAlgorithms.pas
  16. 0 1
      CryptoLib/src/Math/EC/ClpECCurve.pas
  17. 0 3
      CryptoLib/src/Math/EC/ClpECPoint.pas
  18. 0 3
      CryptoLib/src/Math/EC/Custom/Sec/ClpSecP256K1Custom.pas
  19. 0 3
      CryptoLib/src/Math/EC/Custom/Sec/ClpSecP256R1Custom.pas
  20. 0 3
      CryptoLib/src/Math/EC/Custom/Sec/ClpSecP384R1Custom.pas
  21. 0 3
      CryptoLib/src/Math/EC/Custom/Sec/ClpSecP521R1Custom.pas
  22. 0 1
      CryptoLib/src/Math/EC/Custom/Sec/ClpSecT283K1Custom.pas
  23. 1 2
      CryptoLib/src/Math/EC/Multiplier/ClpFixedPointPreCompInfo.pas
  24. 0 2
      CryptoLib/src/Math/EC/Multiplier/ClpMultipliers.pas
  25. 0 2
      CryptoLib/src/Math/EC/Multiplier/ClpWNafUtilities.pas
  26. 0 1
      CryptoLib/src/Math/Field/ClpGenericPolynomialExtensionField.pas
  27. 0 1
      CryptoLib/src/Math/Field/ClpPrimeField.pas

+ 0 - 1
CryptoLib.Tests/src/Asn1/X9Tests.pas

@@ -32,7 +32,6 @@ uses
   TestFramework,
 {$ENDIF FPC}
   ClpBigInteger,
-  ClpBigIntegers,
   ClpIAsn1Objects,
   ClpAsn1Objects,
   ClpIX9ECAsn1Objects,

+ 0 - 1
CryptoLib.Tests/src/Math/EC/Custom/Sec/SecP256R1FieldTests.pas

@@ -37,7 +37,6 @@ uses
   ClpSecObjectIdentifiers,
   ClpPack,
   ClpCustomNamedCurves,
-  ClpECCurve,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpBigInteger,

+ 0 - 1
CryptoLib.Tests/src/Others/NamedCurveTests.pas

@@ -41,7 +41,6 @@ uses
   ClpIX9ECAsn1Objects,
   ClpECParameters,
   ClpECNamedCurveTable,
-  ClpECGost3410NamedCurves,
   ClpIECParameters,
   ClpSignerUtilities,
   ClpECGenerators,

+ 0 - 1
CryptoLib.Tests/src/Others/SignerUtilitiesTests.pas

@@ -35,7 +35,6 @@ uses
   ClpISigner,
   ClpECCurve,
   ClpIECCommon,
-  ClpIECFieldElement,
   ClpIRandom,
   ClpSignerUtilities,
   ClpSecureRandom,

+ 0 - 5
CryptoLib/src/Crypto/EC/ClpCustomNamedCurves.pas

@@ -35,15 +35,10 @@ uses
   ClpBigInteger,
   ClpECCurve,
   ClpSecP256K1Custom,
-  ClpISecP256K1Custom,
   ClpSecP256R1Custom,
-  ClpISecP256R1Custom,
   ClpSecP384R1Custom,
-  ClpISecP384R1Custom,
   ClpSecP521R1Custom,
-  ClpISecP521R1Custom,
   ClpSecT283K1Custom,
-  ClpISecT283K1Custom,
   ClpIECCommon,
   ClpIAsn1Objects,
   ClpWnafUtilities,

+ 1 - 2
CryptoLib/src/Interfaces/Asn1/X509/ClpIX509RsaAsn1Objects.pas

@@ -23,8 +23,7 @@ interface
 
 uses
   ClpIAsn1Core,
-  ClpBigInteger,
-  ClpCryptoLibTypes;
+  ClpBigInteger;
 
 type
   /// <summary>

+ 0 - 1
CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP256K1Custom.pas

@@ -22,7 +22,6 @@ unit ClpISecP256K1Custom;
 interface
 
 uses
-  ClpBigInteger,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpCryptoLibTypes;

+ 0 - 1
CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP256R1Custom.pas

@@ -22,7 +22,6 @@ unit ClpISecP256R1Custom;
 interface
 
 uses
-  ClpBigInteger,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpCryptoLibTypes;

+ 0 - 1
CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP384R1Custom.pas

@@ -22,7 +22,6 @@ unit ClpISecP384R1Custom;
 interface
 
 uses
-  ClpBigInteger,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpCryptoLibTypes;

+ 0 - 1
CryptoLib/src/Interfaces/Math/EC/Custom/Sec/ClpISecP521R1Custom.pas

@@ -22,7 +22,6 @@ unit ClpISecP521R1Custom;
 interface
 
 uses
-  ClpBigInteger,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpCryptoLibTypes;

+ 1 - 2
CryptoLib/src/Interfaces/Math/EC/Endo/ClpIScalarSplitParameters.pas

@@ -22,8 +22,7 @@ unit ClpIScalarSplitParameters;
 interface
 
 uses
-  ClpBigInteger,
-  ClpCryptoLibTypes;
+  ClpBigInteger;
 
 type
   IScalarSplitParameters = interface(IInterface)

+ 1 - 2
CryptoLib/src/Interfaces/Math/EC/Multiplier/ClpIFixedPointPreCompInfo.pas

@@ -23,8 +23,7 @@ interface
 
 uses
   ClpIECCommon,
-  ClpIPreCompInfo,
-  ClpCryptoLibTypes;
+  ClpIPreCompInfo;
 
 type
   IFixedPointPreCompInfo = interface(IPreCompInfo)

+ 1 - 2
CryptoLib/src/Interfaces/Math/Field/ClpIFiniteField.pas

@@ -22,8 +22,7 @@ unit ClpIFiniteField;
 interface
 
 uses
-  ClpBigInteger,
-  ClpCryptoLibTypes;
+  ClpBigInteger;
 
 type
   IFiniteField = interface(IInterface)

+ 0 - 1
CryptoLib/src/Math/EC/Abc/ClpTnaf.pas

@@ -27,7 +27,6 @@ uses
   ClpIZTauElement,
   ClpZTauElement,
   ClpSimpleBigDecimal,
-  ClpECPoint,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpIPreCompCallback,

+ 7 - 10
CryptoLib/src/Math/EC/ClpECAlgorithms.pas

@@ -22,6 +22,7 @@ unit ClpECAlgorithms;
 interface
 
 uses
+  Math,
   SysUtils,
   ClpBigInteger,
   ClpIECCommon,
@@ -29,6 +30,11 @@ uses
   ClpIFiniteField,
   ClpIPolynomialExtensionField,
   ClpIWNafPreCompInfo,
+  ClpBitOperations,
+  ClpFixedPointUtilities,
+  ClpIFixedPointPreCompInfo,
+  ClpEndoUtilities,
+  ClpNat,
   ClpCryptoLibTypes;
 
 type
@@ -83,17 +89,8 @@ type
 implementation
 
 uses
-  Math,
-  ClpBitOperations,
-  ClpECCurve,
-  ClpFixedPointUtilities,
-  ClpIFixedPointPreCompInfo,
-  ClpFixedPointPreCompInfo,
   ClpMultipliers,
-  ClpWNafUtilities,
-  ClpWNafPreCompInfo,
-  ClpEndoUtilities,
-  ClpNat;
+  ClpWNafUtilities;
 
 { TECAlgorithms }
 

+ 0 - 1
CryptoLib/src/Math/EC/ClpECCurve.pas

@@ -38,7 +38,6 @@ uses
   ClpIPreCompCallback,
   ClpIPreCompInfo,
   ClpISecureRandom,
-  ClpArrayUtilities,
   ClpBitOperations,
   ClpBigIntegers,
   ClpECLookupTables,

+ 0 - 3
CryptoLib/src/Math/EC/ClpECPoint.pas

@@ -220,9 +220,6 @@ type
 
 implementation
 
-uses
-  ClpECCurve;
-
 { TECPoint.TValidityCallback }
 
 constructor TECPoint.TValidityCallback.Create(const AOuter: IECPoint; ADecompressed,

+ 0 - 3
CryptoLib/src/Math/EC/Custom/Sec/ClpSecP256K1Custom.pas

@@ -24,13 +24,11 @@ interface
 uses
   SysUtils,
   ClpBigInteger,
-  ClpBigIntegers,
   ClpNat256,
   ClpNat,
   ClpMod,
   ClpPack,
   ClpEncoders,
-  ClpSecureRandom,
   ClpISecureRandom,
   ClpArrayUtilities,
   ClpBitOperations,
@@ -39,7 +37,6 @@ uses
   ClpECFieldElement,
   ClpECPoint,
   ClpECLookupTables,
-  ClpFiniteFields,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpISecP256K1Custom,

+ 0 - 3
CryptoLib/src/Math/EC/Custom/Sec/ClpSecP256R1Custom.pas

@@ -24,13 +24,11 @@ interface
 uses
   SysUtils,
   ClpBigInteger,
-  ClpBigIntegers,
   ClpNat256,
   ClpNat,
   ClpMod,
   ClpPack,
   ClpEncoders,
-  ClpSecureRandom,
   ClpISecureRandom,
   ClpArrayUtilities,
   ClpBitOperations,
@@ -39,7 +37,6 @@ uses
   ClpECFieldElement,
   ClpECPoint,
   ClpECLookupTables,
-  ClpFiniteFields,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpISecP256R1Custom,

+ 0 - 3
CryptoLib/src/Math/EC/Custom/Sec/ClpSecP384R1Custom.pas

@@ -24,13 +24,11 @@ interface
 uses
   SysUtils,
   ClpBigInteger,
-  ClpBigIntegers,
   ClpNat384,
   ClpNat,
   ClpMod,
   ClpPack,
   ClpEncoders,
-  ClpSecureRandom,
   ClpISecureRandom,
   ClpArrayUtilities,
   ClpBitOperations,
@@ -39,7 +37,6 @@ uses
   ClpECFieldElement,
   ClpECPoint,
   ClpECLookupTables,
-  ClpFiniteFields,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpISecP384R1Custom,

+ 0 - 3
CryptoLib/src/Math/EC/Custom/Sec/ClpSecP521R1Custom.pas

@@ -24,13 +24,11 @@ interface
 uses
   SysUtils,
   ClpBigInteger,
-  ClpBigIntegers,
   ClpNat512,
   ClpNat,
   ClpMod,
   ClpPack,
   ClpEncoders,
-  ClpSecureRandom,
   ClpISecureRandom,
   ClpArrayUtilities,
   ClpBitOperations,
@@ -39,7 +37,6 @@ uses
   ClpECFieldElement,
   ClpECPoint,
   ClpECLookupTables,
-  ClpFiniteFields,
   ClpIECCommon,
   ClpIECFieldElement,
   ClpISecP521R1Custom,

+ 0 - 1
CryptoLib/src/Math/EC/Custom/Sec/ClpSecT283K1Custom.pas

@@ -24,7 +24,6 @@ interface
 uses
   SysUtils,
   ClpBigInteger,
-  ClpBigIntegers,
   ClpBitOperations,
   ClpNat,
   ClpNat320,

+ 1 - 2
CryptoLib/src/Math/EC/Multiplier/ClpFixedPointPreCompInfo.pas

@@ -24,8 +24,7 @@ interface
 uses
   ClpIECCommon,
   ClpIPreCompInfo,
-  ClpIFixedPointPreCompInfo,
-  ClpCryptoLibTypes;
+  ClpIFixedPointPreCompInfo;
 
 type
   TFixedPointPreCompInfo = class sealed(TInterfacedObject, IPreCompInfo,

+ 0 - 2
CryptoLib/src/Math/EC/Multiplier/ClpMultipliers.pas

@@ -23,9 +23,7 @@ interface
 
 uses
   SysUtils,
-  Math,
   ClpECAlgorithms,
-  ClpECPoint,
   ClpEndoUtilities,
   ClpFixedPointUtilities,
   ClpIFixedPointPreCompInfo,

+ 0 - 2
CryptoLib/src/Math/EC/Multiplier/ClpWNafUtilities.pas

@@ -28,10 +28,8 @@ uses
   ClpBitOperations,
   ClpBigInteger,
   ClpIECCommon,
-  ClpECCurve,
   ClpECCurveConstants,
   ClpECAlgorithms,
-  ClpECPoint,
   ClpIECFieldElement,
   ClpIPreCompCallback,
   ClpIPreCompInfo,

+ 0 - 1
CryptoLib/src/Math/Field/ClpGenericPolynomialExtensionField.pas

@@ -24,7 +24,6 @@ interface
 uses
   SysUtils,
   ClpBigInteger,
-  ClpCryptoLibTypes,
   ClpBitOperations,
   ClpIFiniteField,
   ClpIPolynomial,

+ 0 - 1
CryptoLib/src/Math/Field/ClpPrimeField.pas

@@ -23,7 +23,6 @@ interface
 
 uses
   ClpBigInteger,
-  ClpCryptoLibTypes,
   ClpIFiniteField,
   ClpIPrimeField;