Browse Source

Add: support for AES CBC PKCS#7 padding with 128, 192, 256 bits key size

- updated acknowledgement and copyright year
- minor fixes and code cleanup
Ugochukwu Mmaduekwe 7 years ago
parent
commit
2f8d999e44
100 changed files with 1083 additions and 287 deletions
  1. 25 1
      CryptoLib.Samples/Delphi.Samples/UsageSamples.dpr
  2. 1 0
      CryptoLib.Samples/FreePascal.Samples/UsageSamples.lpr
  3. 198 6
      CryptoLib.Samples/src/UsageExamples.pas
  4. 27 1
      CryptoLib.Tests/Delphi.Tests/CryptoLib.Tests.dpr
  5. 24 6
      CryptoLib.Tests/FreePascal.Tests/CryptoLib.Tests.lpi
  6. 3 0
      CryptoLib.Tests/FreePascal.Tests/CryptoLib.lpr
  7. 18 2
      CryptoLib.Tests/FreePascal.Tests/CryptoLibConsole.Tests.lpi
  8. 3 0
      CryptoLib.Tests/FreePascal.Tests/CryptoLibConsole.lpr
  9. 3 3
      CryptoLib.Tests/src/Asn1/Asn1SequenceParserTests.pas
  10. 3 3
      CryptoLib.Tests/src/Asn1/DerApplicationSpecificTests.pas
  11. 3 3
      CryptoLib.Tests/src/Asn1/EqualsAndHashCodeTests.pas
  12. 3 3
      CryptoLib.Tests/src/Asn1/OIDTests.pas
  13. 90 0
      CryptoLib.Tests/src/Crypto/AESTestVectors.pas
  14. 193 0
      CryptoLib.Tests/src/Crypto/AESTests.pas
  15. 197 0
      CryptoLib.Tests/src/Crypto/BlockCipherVectorTests.pas
  16. 3 3
      CryptoLib.Tests/src/Crypto/DigestRandomNumberTests.pas
  17. 3 3
      CryptoLib.Tests/src/Math/BigIntegerTests.pas
  18. 3 3
      CryptoLib.Tests/src/Math/EC/Custom/Sec/SecP384R1FieldTests.pas
  19. 3 3
      CryptoLib.Tests/src/Math/EC/FixedPointTests.pas
  20. 3 3
      CryptoLib.Tests/src/Math/ECAlgorithmsTests.pas
  21. 3 3
      CryptoLib.Tests/src/Math/ECPointTests.pas
  22. 3 3
      CryptoLib.Tests/src/Others/ECDsa5Tests.pas
  23. 3 3
      CryptoLib.Tests/src/Others/ECSchnorrTests.pas
  24. 3 3
      CryptoLib.Tests/src/Others/ECTests.pas
  25. 3 3
      CryptoLib.Tests/src/Others/NamedCurveTests.pas
  26. 3 3
      CryptoLib.Tests/src/Others/SignerUtilitiesTests.pas
  27. 3 3
      CryptoLib.Tests/src/Security/SecureRandomTests.pas
  28. 3 3
      CryptoLib.Tests/src/Utils/ClpFixedSecureRandom.pas
  29. 3 3
      CryptoLib.Tests/src/Utils/ClpIFixedSecureRandom.pas
  30. 3 3
      CryptoLib/src/Asn1/ClpAsn1Encodable.pas
  31. 3 3
      CryptoLib/src/Asn1/ClpAsn1EncodableVector.pas
  32. 3 3
      CryptoLib/src/Asn1/ClpAsn1Generator.pas
  33. 3 3
      CryptoLib/src/Asn1/ClpAsn1InputStream.pas
  34. 3 3
      CryptoLib/src/Asn1/ClpAsn1Null.pas
  35. 3 3
      CryptoLib/src/Asn1/ClpAsn1Object.pas
  36. 3 3
      CryptoLib/src/Asn1/ClpAsn1OctetString.pas
  37. 3 3
      CryptoLib/src/Asn1/ClpAsn1OutputStream.pas
  38. 3 3
      CryptoLib/src/Asn1/ClpAsn1Sequence.pas
  39. 3 3
      CryptoLib/src/Asn1/ClpAsn1Set.pas
  40. 3 3
      CryptoLib/src/Asn1/ClpAsn1StreamParser.pas
  41. 3 3
      CryptoLib/src/Asn1/ClpAsn1TaggedObject.pas
  42. 3 3
      CryptoLib/src/Asn1/ClpAsn1Tags.pas
  43. 3 3
      CryptoLib/src/Asn1/ClpBerApplicationSpecific.pas
  44. 3 3
      CryptoLib/src/Asn1/ClpBerApplicationSpecificParser.pas
  45. 3 3
      CryptoLib/src/Asn1/ClpBerBitString.pas
  46. 3 3
      CryptoLib/src/Asn1/ClpBerGenerator.pas
  47. 3 3
      CryptoLib/src/Asn1/ClpBerNull.pas
  48. 3 3
      CryptoLib/src/Asn1/ClpBerOctetString.pas
  49. 3 3
      CryptoLib/src/Asn1/ClpBerOctetStringParser.pas
  50. 3 3
      CryptoLib/src/Asn1/ClpBerOutputStream.pas
  51. 3 3
      CryptoLib/src/Asn1/ClpBerSequence.pas
  52. 3 3
      CryptoLib/src/Asn1/ClpBerSequenceGenerator.pas
  53. 3 3
      CryptoLib/src/Asn1/ClpBerSequenceParser.pas
  54. 3 3
      CryptoLib/src/Asn1/ClpBerSet.pas
  55. 3 3
      CryptoLib/src/Asn1/ClpBerSetParser.pas
  56. 3 3
      CryptoLib/src/Asn1/ClpBerTaggedObject.pas
  57. 3 3
      CryptoLib/src/Asn1/ClpBerTaggedObjectParser.pas
  58. 3 3
      CryptoLib/src/Asn1/ClpConstructedOctetStream.pas
  59. 3 3
      CryptoLib/src/Asn1/ClpDefiniteLengthInputStream.pas
  60. 3 3
      CryptoLib/src/Asn1/ClpDerApplicationSpecific.pas
  61. 3 3
      CryptoLib/src/Asn1/ClpDerBitString.pas
  62. 3 3
      CryptoLib/src/Asn1/ClpDerBmpString.pas
  63. 3 3
      CryptoLib/src/Asn1/ClpDerBoolean.pas
  64. 3 3
      CryptoLib/src/Asn1/ClpDerEnumerated.pas
  65. 3 3
      CryptoLib/src/Asn1/ClpDerExternal.pas
  66. 3 3
      CryptoLib/src/Asn1/ClpDerExternalParser.pas
  67. 3 3
      CryptoLib/src/Asn1/ClpDerGeneralString.pas
  68. 3 3
      CryptoLib/src/Asn1/ClpDerGenerator.pas
  69. 3 3
      CryptoLib/src/Asn1/ClpDerGraphicString.pas
  70. 3 3
      CryptoLib/src/Asn1/ClpDerIA5String.pas
  71. 3 3
      CryptoLib/src/Asn1/ClpDerInteger.pas
  72. 3 3
      CryptoLib/src/Asn1/ClpDerNull.pas
  73. 3 3
      CryptoLib/src/Asn1/ClpDerNumericString.pas
  74. 3 3
      CryptoLib/src/Asn1/ClpDerObjectIdentifier.pas
  75. 3 3
      CryptoLib/src/Asn1/ClpDerOctetString.pas
  76. 3 3
      CryptoLib/src/Asn1/ClpDerOctetStringParser.pas
  77. 3 3
      CryptoLib/src/Asn1/ClpDerOutputStream.pas
  78. 3 3
      CryptoLib/src/Asn1/ClpDerPrintableString.pas
  79. 3 3
      CryptoLib/src/Asn1/ClpDerSequence.pas
  80. 3 3
      CryptoLib/src/Asn1/ClpDerSequenceGenerator.pas
  81. 3 3
      CryptoLib/src/Asn1/ClpDerSequenceParser.pas
  82. 3 3
      CryptoLib/src/Asn1/ClpDerSet.pas
  83. 3 3
      CryptoLib/src/Asn1/ClpDerSetParser.pas
  84. 3 3
      CryptoLib/src/Asn1/ClpDerStringBase.pas
  85. 3 3
      CryptoLib/src/Asn1/ClpDerT61String.pas
  86. 3 3
      CryptoLib/src/Asn1/ClpDerTaggedObject.pas
  87. 3 3
      CryptoLib/src/Asn1/ClpDerUniversalString.pas
  88. 3 3
      CryptoLib/src/Asn1/ClpDerUtf8String.pas
  89. 3 3
      CryptoLib/src/Asn1/ClpDerVideotexString.pas
  90. 3 3
      CryptoLib/src/Asn1/ClpDerVisibleString.pas
  91. 3 3
      CryptoLib/src/Asn1/ClpIndefiniteLengthInputStream.pas
  92. 3 3
      CryptoLib/src/Asn1/ClpLimitedInputStream.pas
  93. 3 3
      CryptoLib/src/Asn1/ClpOidTokenizer.pas
  94. 3 3
      CryptoLib/src/Asn1/CryptoPro/ClpCryptoProObjectIdentifiers.pas
  95. 3 3
      CryptoLib/src/Asn1/CryptoPro/ClpECGost3410NamedCurves.pas
  96. 40 7
      CryptoLib/src/Asn1/Nist/ClpNistObjectIdentifiers.pas
  97. 3 3
      CryptoLib/src/Asn1/Oiw/ClpOiwObjectIdentifiers.pas
  98. 3 3
      CryptoLib/src/Asn1/Pkcs/ClpPkcsObjectIdentifiers.pas
  99. 3 3
      CryptoLib/src/Asn1/RossStandart/ClpRosstandartObjectIdentifiers.pas
  100. 3 3
      CryptoLib/src/Asn1/Sec/ClpSecNamedCurves.pas

+ 25 - 1
CryptoLib.Samples/Delphi.Samples/UsageSamples.dpr

@@ -286,7 +286,30 @@ uses
   ClpSetWeakRef in '..\..\CryptoLib\src\Utils\ClpSetWeakRef.pas',
   ClpSetWeakRef in '..\..\CryptoLib\src\Utils\ClpSetWeakRef.pas',
   UsageExamples in '..\src\UsageExamples.pas',
   UsageExamples in '..\src\UsageExamples.pas',
   ClpIECSchnorrSigner in '..\..\CryptoLib\src\Interfaces\ClpIECSchnorrSigner.pas',
   ClpIECSchnorrSigner in '..\..\CryptoLib\src\Interfaces\ClpIECSchnorrSigner.pas',
-  ClpECSchnorrSigner in '..\..\CryptoLib\src\Crypto\Signers\ClpECSchnorrSigner.pas';
+  ClpECSchnorrSigner in '..\..\CryptoLib\src\Crypto\Signers\ClpECSchnorrSigner.pas',
+  ClpCipherUtilities in '..\..\CryptoLib\src\Security\ClpCipherUtilities.pas',
+  ClpIBufferedCipher in '..\..\CryptoLib\src\Interfaces\ClpIBufferedCipher.pas',
+  ClpIBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpIBlockCipher.pas',
+  ClpIBlockCipherPadding in '..\..\CryptoLib\src\Interfaces\ClpIBlockCipherPadding.pas',
+  ClpPkcs7Padding in '..\..\CryptoLib\src\Crypto\Paddings\ClpPkcs7Padding.pas',
+  ClpIPkcs7Padding in '..\..\CryptoLib\src\Interfaces\ClpIPkcs7Padding.pas',
+  ClpCbcBlockCipher in '..\..\CryptoLib\src\Crypto\Modes\ClpCbcBlockCipher.pas',
+  ClpICbcBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpICbcBlockCipher.pas',
+  ClpParametersWithIV in '..\..\CryptoLib\src\Crypto\Parameters\ClpParametersWithIV.pas',
+  ClpIParametersWithIV in '..\..\CryptoLib\src\Interfaces\ClpIParametersWithIV.pas',
+  ClpKeyParameter in '..\..\CryptoLib\src\Crypto\Parameters\ClpKeyParameter.pas',
+  ClpIKeyParameter in '..\..\CryptoLib\src\Interfaces\ClpIKeyParameter.pas',
+  ClpBufferedCipherBase in '..\..\CryptoLib\src\Crypto\ClpBufferedCipherBase.pas',
+  ClpIBufferedCipherBase in '..\..\CryptoLib\src\Interfaces\ClpIBufferedCipherBase.pas',
+  ClpBufferedBlockCipher in '..\..\CryptoLib\src\Crypto\ClpBufferedBlockCipher.pas',
+  ClpIBufferedBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpIBufferedBlockCipher.pas',
+  ClpCheck in '..\..\CryptoLib\src\Utils\ClpCheck.pas',
+  ClpPaddedBufferedBlockCipher in '..\..\CryptoLib\src\Crypto\Paddings\ClpPaddedBufferedBlockCipher.pas',
+  ClpIPaddedBufferedBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpIPaddedBufferedBlockCipher.pas',
+  ClpGeneratorUtilities in '..\..\CryptoLib\src\Security\ClpGeneratorUtilities.pas',
+  ClpParameterUtilities in '..\..\CryptoLib\src\Security\ClpParameterUtilities.pas',
+  ClpAesEngine in '..\..\CryptoLib\src\Crypto\Engines\ClpAesEngine.pas',
+  ClpIAesEngine in '..\..\CryptoLib\src\Interfaces\ClpIAesEngine.pas';
 
 
 begin
 begin
   try
   try
@@ -296,6 +319,7 @@ begin
     TUsageExamples.GetPublicKeyFromPrivateKey;
     TUsageExamples.GetPublicKeyFromPrivateKey;
     TUsageExamples.RecreatePublicAndPrivateKeyPairsFromByteArray;
     TUsageExamples.RecreatePublicAndPrivateKeyPairsFromByteArray;
     TUsageExamples.RecreatePublicKeyFromXAndYCoordByteArray;
     TUsageExamples.RecreatePublicKeyFromXAndYCoordByteArray;
+    TUsageExamples.BinaryCompatiblePascalCoinAES256EncryptDecryptDemo('Pascal Rules', 'Pascal');
     Readln;
     Readln;
   except
   except
     on E: Exception do
     on E: Exception do

+ 1 - 0
CryptoLib.Samples/FreePascal.Samples/UsageSamples.lpr

@@ -15,6 +15,7 @@ begin
     TUsageExamples.GetPublicKeyFromPrivateKey;
     TUsageExamples.GetPublicKeyFromPrivateKey;
     TUsageExamples.RecreatePublicAndPrivateKeyPairsFromByteArray;
     TUsageExamples.RecreatePublicAndPrivateKeyPairsFromByteArray;
     TUsageExamples.RecreatePublicKeyFromXAndYCoordByteArray;
     TUsageExamples.RecreatePublicKeyFromXAndYCoordByteArray;
+    TUsageExamples.BinaryCompatiblePascalCoinAES256EncryptDecryptDemo('Pascal Rules', 'Pascal');
     Readln;
     Readln;
   except
   except
     on E: Exception do
     on E: Exception do

+ 198 - 6
CryptoLib.Samples/src/UsageExamples.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 
@@ -25,6 +25,8 @@ interface
 
 
 uses
 uses
   SysUtils,
   SysUtils,
+  HlpIHash,
+  HlpHashFactory,
   ClpBigInteger,
   ClpBigInteger,
   ClpSecureRandom,
   ClpSecureRandom,
   ClpISecureRandom,
   ClpISecureRandom,
@@ -45,6 +47,15 @@ uses
   ClpECPoint,
   ClpECPoint,
   ClpISigner,
   ClpISigner,
   ClpSignerUtilities,
   ClpSignerUtilities,
+  ClpKeyParameter,
+  ClpIKeyParameter,
+  ClpParametersWithIV,
+  ClpIParametersWithIV,
+  ClpIBufferedCipher,
+  ClpParameterUtilities,
+  ClpCipherUtilities,
+  ClpHex,
+  ClpArrayUtils,
   ClpSecNamedCurves;
   ClpSecNamedCurves;
 
 
 type
 type
@@ -67,24 +78,205 @@ type
     SigningAlgorithmECDSA = 'SHA-1withECDSA';
     SigningAlgorithmECDSA = 'SHA-1withECDSA';
     SigningAlgorithmECSCHNORR = 'SHA-256withECSCHNORRLIBSECP';
     SigningAlgorithmECSCHNORR = 'SHA-256withECSCHNORRLIBSECP';
 
 
+    PKCS5_SALT_LEN = Int32(8);
+    SALT_MAGIC_LEN = Int32(8);
+    SALT_SIZE = Int32(8);
+    SALT_MAGIC: String = 'Salted__';
+
   class var
   class var
     FRandom: ISecureRandom;
     FRandom: ISecureRandom;
     FCurve: IX9ECParameters;
     FCurve: IX9ECParameters;
     class function BytesToHexString(input: TBytes): String; static;
     class function BytesToHexString(input: TBytes): String; static;
     class constructor UsageExamples();
     class constructor UsageExamples();
+  private
+    class function EVP_GetSalt(): TBytes; static; inline;
+    class function EVP_GetKeyIV(PasswordBytes, SaltBytes: TBytes;
+      out KeyBytes, IVBytes: TBytes): Boolean; static;
+    class function AES256CBCPascalCoinEncrypt(PlainText, PasswordBytes: TBytes)
+      : TBytes; static;
+
+    class function AES256CBCPascalCoinDecrypt(CipherText, PasswordBytes: TBytes;
+      out PlainText: TBytes): Boolean; static;
 
 
   public
   public
     class procedure GenerateKeyPairAndSignECDSA(); static;
     class procedure GenerateKeyPairAndSignECDSA(); static;
     class procedure GenerateKeyPairAndSignECSchnorr(); static;
     class procedure GenerateKeyPairAndSignECSchnorr(); static;
     class procedure GetPublicKeyFromPrivateKey(); static;
     class procedure GetPublicKeyFromPrivateKey(); static;
     class procedure RecreatePublicAndPrivateKeyPairsFromByteArray(); static;
     class procedure RecreatePublicAndPrivateKeyPairsFromByteArray(); static;
-    class procedure RecreatePublicKeyFromXAndYCoordByteArray(); static;
+    class procedure RecreatePublicKeyFromXAndYCoordByteArray; static;
+    class procedure BinaryCompatiblePascalCoinAES256EncryptDecryptDemo
+      (const inputmessage, password: string); static;
   end;
   end;
 
 
 implementation
 implementation
 
 
 { TUsageExamples }
 { TUsageExamples }
 
 
+class function TUsageExamples.EVP_GetKeyIV(PasswordBytes, SaltBytes: TBytes;
+  out KeyBytes, IVBytes: TBytes): Boolean;
+var
+  LKey, LIV: integer;
+  LHash: IHash;
+begin
+  LKey := 32; // AES256 CBC Key Length
+  LIV := 16; // AES256 CBC IV Length
+  System.SetLength(KeyBytes, LKey);
+  System.SetLength(IVBytes, LKey);
+  // Max size to start then reduce it at the end
+  LHash := THashFactory.TCrypto.CreateSHA2_256; // SHA2_256
+  LHash.Initialize();
+  System.Assert(LHash.HashSize >= LKey);
+  System.Assert(LHash.HashSize >= LIV);
+  // Derive Key First
+  LHash.TransformBytes(PasswordBytes);
+  if SaltBytes <> Nil then
+  begin
+    LHash.TransformBytes(SaltBytes);
+  end;
+  KeyBytes := System.Copy(LHash.TransformFinal.GetBytes);
+  // Derive IV Next
+  LHash.Initialize();
+  LHash.TransformBytes(KeyBytes);
+  LHash.TransformBytes(PasswordBytes);
+  if SaltBytes <> Nil then
+  begin
+    LHash.TransformBytes(SaltBytes);
+  end;
+  IVBytes := System.Copy(LHash.TransformFinal.GetBytes);
+
+  System.SetLength(IVBytes, LIV);
+  Result := True;
+end;
+
+class function TUsageExamples.EVP_GetSalt: TBytes;
+begin
+  System.SetLength(Result, PKCS5_SALT_LEN);
+  FRandom.NextBytes(Result);
+end;
+
+class function TUsageExamples.AES256CBCPascalCoinDecrypt(CipherText,
+  PasswordBytes: TBytes; out PlainText: TBytes): Boolean;
+var
+  SaltBytes, KeyBytes, IVBytes, Buf, Chopped: TBytes;
+  KeyParametersWithIV: IParametersWithIV;
+  cipher: IBufferedCipher;
+  LBufStart, LSrcStart, Count: Int32;
+begin
+  Result := false;
+
+  System.SetLength(SaltBytes, SALT_SIZE);
+  // First read the magic text and the salt - if any
+  Chopped := System.Copy(CipherText, 0, SALT_MAGIC_LEN);
+  if (System.Length(CipherText) >= SALT_MAGIC_LEN) and
+    (TArrayUtils.AreEqual(Chopped, TEncoding.UTF8.GetBytes(SALT_MAGIC))) then
+  begin
+    System.Move(CipherText[SALT_MAGIC_LEN], SaltBytes[0], SALT_SIZE);
+    If not EVP_GetKeyIV(PasswordBytes, SaltBytes, KeyBytes, IVBytes) then
+    begin
+      Exit;
+    end;
+    LSrcStart := SALT_MAGIC_LEN + SALT_SIZE;
+  end
+  else
+  begin
+    If Not EVP_GetKeyIV(PasswordBytes, Nil, KeyBytes, IVBytes) then
+    begin
+      Exit;
+    end;
+    LSrcStart := 0;
+  end;
+
+  cipher := TCipherUtilities.GetCipher('AES/CBC/PKCS7PADDING');
+  KeyParametersWithIV := TParametersWithIV.Create
+    (TParameterUtilities.CreateKeyParameter('AES', KeyBytes), IVBytes);
+
+  cipher.Init(false, KeyParametersWithIV); // init decryption cipher
+
+  System.SetLength(Buf, System.Length(CipherText));
+
+  LBufStart := 0;
+
+  Count := cipher.ProcessBytes(CipherText, LSrcStart, System.Length(CipherText)
+    - LSrcStart, Buf, LBufStart);
+  System.Inc(LBufStart, Count);
+  Count := cipher.DoFinal(Buf, LBufStart);
+  System.Inc(LBufStart, Count);
+
+  System.SetLength(Buf, LBufStart);
+
+  PlainText := System.Copy(Buf);
+  Result := True;
+
+end;
+
+class function TUsageExamples.AES256CBCPascalCoinEncrypt(PlainText,
+  PasswordBytes: TBytes): TBytes;
+var
+  SaltBytes, KeyBytes, IVBytes, Buf: TBytes;
+  KeyParametersWithIV: IParametersWithIV;
+  cipher: IBufferedCipher;
+  LBlockSize, LBufStart, Count: Int32;
+begin
+  SaltBytes := EVP_GetSalt;
+  EVP_GetKeyIV(PasswordBytes, SaltBytes, KeyBytes, IVBytes);
+  cipher := TCipherUtilities.GetCipher('AES/CBC/PKCS7PADDING');
+  KeyParametersWithIV := TParametersWithIV.Create
+    (TParameterUtilities.CreateKeyParameter('AES', KeyBytes), IVBytes);
+
+  cipher.Init(True, KeyParametersWithIV); // init encryption cipher
+  LBlockSize := cipher.GetBlockSize;
+
+  System.SetLength(Buf, System.Length(PlainText) + LBlockSize + SALT_MAGIC_LEN +
+    PKCS5_SALT_LEN);
+
+  LBufStart := 0;
+
+  System.Move(TEncoding.UTF8.GetBytes(SALT_MAGIC)[0], Buf[LBufStart],
+    SALT_MAGIC_LEN * System.SizeOf(Byte));
+  System.Inc(LBufStart, SALT_MAGIC_LEN);
+  System.Move(SaltBytes[0], Buf[LBufStart],
+    PKCS5_SALT_LEN * System.SizeOf(Byte));
+  System.Inc(LBufStart, PKCS5_SALT_LEN);
+
+  Count := cipher.ProcessBytes(PlainText, 0, System.Length(PlainText), Buf,
+    LBufStart);
+  System.Inc(LBufStart, Count);
+  Count := cipher.DoFinal(Buf, LBufStart);
+  System.Inc(LBufStart, Count);
+
+  System.SetLength(Buf, LBufStart);
+  Result := Buf;
+end;
+
+class procedure TUsageExamples.
+  BinaryCompatiblePascalCoinAES256EncryptDecryptDemo(const inputmessage,
+  password: string);
+var
+  PlainText, PasswordBytes, CipherText, DecryptedCipherText: TBytes;
+begin
+
+  PlainText := TEncoding.UTF8.GetBytes(inputmessage);
+  PasswordBytes := TEncoding.UTF8.GetBytes(password);
+  CipherText := TUsageExamples.AES256CBCPascalCoinEncrypt(PlainText,
+    PasswordBytes);
+
+  if TUsageExamples.AES256CBCPascalCoinDecrypt(CipherText, PasswordBytes,
+    DecryptedCipherText) then
+  begin
+    if TArrayUtils.AreEqual(PlainText, DecryptedCipherText) then
+    begin
+      Writeln('AES_256_CBC PascalCoin Compatability Encrypt, Decrypt Was Successful '
+        + sLineBreak);
+      Exit;
+    end;
+
+  end;
+
+  Writeln('AES_256_CBC PascalCoin Compatability Encrypt, Decrypt Failed ' +
+    sLineBreak);
+
+end;
+
 class function TUsageExamples.BytesToHexString(input: TBytes): String;
 class function TUsageExamples.BytesToHexString(input: TBytes): String;
 var
 var
   index: Int32;
   index: Int32;
@@ -146,7 +338,7 @@ begin
 
 
   // sign
   // sign
 
 
-  signer.Init(true, privParams);
+  signer.Init(True, privParams);
 
 
   &message := TEncoding.UTF8.GetBytes('PascalECDSA');
   &message := TEncoding.UTF8.GetBytes('PascalECDSA');
 
 
@@ -215,7 +407,7 @@ begin
 
 
   // sign
   // sign
 
 
-  signer.Init(true, privParams);
+  signer.Init(True, privParams);
 
 
   &message := TEncoding.UTF8.GetBytes('PascalECSCHNORR');
   &message := TEncoding.UTF8.GetBytes('PascalECSCHNORR');
 
 

+ 27 - 1
CryptoLib.Tests/Delphi.Tests/CryptoLib.Tests.dpr

@@ -316,7 +316,33 @@ uses
   ClpIECSchnorrSigner in '..\..\CryptoLib\src\Interfaces\ClpIECSchnorrSigner.pas',
   ClpIECSchnorrSigner in '..\..\CryptoLib\src\Interfaces\ClpIECSchnorrSigner.pas',
   ECSchnorrTests in '..\src\Others\ECSchnorrTests.pas',
   ECSchnorrTests in '..\src\Others\ECSchnorrTests.pas',
   DigestRandomNumberTests in '..\src\Crypto\DigestRandomNumberTests.pas',
   DigestRandomNumberTests in '..\src\Crypto\DigestRandomNumberTests.pas',
-  FixedPointTests in '..\src\Math\EC\FixedPointTests.pas';
+  FixedPointTests in '..\src\Math\EC\FixedPointTests.pas',
+  ClpCipherUtilities in '..\..\CryptoLib\src\Security\ClpCipherUtilities.pas',
+  ClpIBufferedCipher in '..\..\CryptoLib\src\Interfaces\ClpIBufferedCipher.pas',
+  ClpIBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpIBlockCipher.pas',
+  ClpIBlockCipherPadding in '..\..\CryptoLib\src\Interfaces\ClpIBlockCipherPadding.pas',
+  ClpPkcs7Padding in '..\..\CryptoLib\src\Crypto\Paddings\ClpPkcs7Padding.pas',
+  ClpIPkcs7Padding in '..\..\CryptoLib\src\Interfaces\ClpIPkcs7Padding.pas',
+  ClpCbcBlockCipher in '..\..\CryptoLib\src\Crypto\Modes\ClpCbcBlockCipher.pas',
+  ClpICbcBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpICbcBlockCipher.pas',
+  ClpParametersWithIV in '..\..\CryptoLib\src\Crypto\Parameters\ClpParametersWithIV.pas',
+  ClpIParametersWithIV in '..\..\CryptoLib\src\Interfaces\ClpIParametersWithIV.pas',
+  ClpKeyParameter in '..\..\CryptoLib\src\Crypto\Parameters\ClpKeyParameter.pas',
+  ClpIKeyParameter in '..\..\CryptoLib\src\Interfaces\ClpIKeyParameter.pas',
+  ClpBufferedCipherBase in '..\..\CryptoLib\src\Crypto\ClpBufferedCipherBase.pas',
+  ClpIBufferedCipherBase in '..\..\CryptoLib\src\Interfaces\ClpIBufferedCipherBase.pas',
+  ClpBufferedBlockCipher in '..\..\CryptoLib\src\Crypto\ClpBufferedBlockCipher.pas',
+  ClpIBufferedBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpIBufferedBlockCipher.pas',
+  ClpCheck in '..\..\CryptoLib\src\Utils\ClpCheck.pas',
+  ClpPaddedBufferedBlockCipher in '..\..\CryptoLib\src\Crypto\Paddings\ClpPaddedBufferedBlockCipher.pas',
+  ClpIPaddedBufferedBlockCipher in '..\..\CryptoLib\src\Interfaces\ClpIPaddedBufferedBlockCipher.pas',
+  ClpGeneratorUtilities in '..\..\CryptoLib\src\Security\ClpGeneratorUtilities.pas',
+  ClpParameterUtilities in '..\..\CryptoLib\src\Security\ClpParameterUtilities.pas',
+  ClpAesEngine in '..\..\CryptoLib\src\Crypto\Engines\ClpAesEngine.pas',
+  ClpIAesEngine in '..\..\CryptoLib\src\Interfaces\ClpIAesEngine.pas',
+  BlockCipherVectorTests in '..\src\Crypto\BlockCipherVectorTests.pas',
+  AESTestVectors in '..\src\Crypto\AESTestVectors.pas',
+  AESTests in '..\src\Crypto\AESTests.pas';
 
 
 begin
 begin
 
 

+ 24 - 6
CryptoLib.Tests/FreePascal.Tests/CryptoLib.Tests.lpi

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <CONFIG>
 <CONFIG>
   <ProjectOptions>
   <ProjectOptions>
-    <Version Value="11"/>
+    <Version Value="10"/>
     <PathDelim Value="\"/>
     <PathDelim Value="\"/>
     <General>
     <General>
       <SessionStorage Value="InProjectDir"/>
       <SessionStorage Value="InProjectDir"/>
@@ -17,10 +17,9 @@
       <Version Value="2"/>
       <Version Value="2"/>
     </PublishOptions>
     </PublishOptions>
     <RunParams>
     <RunParams>
-      <FormatVersion Value="2"/>
-      <Modes Count="1">
-        <Mode0 Name="default"/>
-      </Modes>
+      <local>
+        <FormatVersion Value="1"/>
+      </local>
     </RunParams>
     </RunParams>
     <RequiredPackages Count="4">
     <RequiredPackages Count="4">
       <Item1>
       <Item1>
@@ -36,7 +35,7 @@
         <PackageName Value="FCL"/>
         <PackageName Value="FCL"/>
       </Item4>
       </Item4>
     </RequiredPackages>
     </RequiredPackages>
-    <Units Count="19">
+    <Units Count="22">
       <Unit0>
       <Unit0>
         <Filename Value="CryptoLib.lpr"/>
         <Filename Value="CryptoLib.lpr"/>
         <IsPartOfProject Value="True"/>
         <IsPartOfProject Value="True"/>
@@ -114,6 +113,18 @@
         <Filename Value="..\src\Math\EC\FixedPointTests.pas"/>
         <Filename Value="..\src\Math\EC\FixedPointTests.pas"/>
         <IsPartOfProject Value="True"/>
         <IsPartOfProject Value="True"/>
       </Unit18>
       </Unit18>
+      <Unit19>
+        <Filename Value="..\src\Crypto\AESTests.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit19>
+      <Unit20>
+        <Filename Value="..\src\Crypto\BlockCipherVectorTests.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit20>
+      <Unit21>
+        <Filename Value="..\src\Crypto\AESTestVectors.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit21>
     </Units>
     </Units>
   </ProjectOptions>
   </ProjectOptions>
   <CompilerOptions>
   <CompilerOptions>
@@ -127,6 +138,13 @@
       <OtherUnitFiles Value="..\src\Asn1;..\src\Math;..\src\Math\EC\Custom\Sec;..\src\Others;..\src\Security;..\src\Utils;..\src\Crypto;..\src\Math\EC"/>
       <OtherUnitFiles Value="..\src\Asn1;..\src\Math;..\src\Math\EC\Custom\Sec;..\src\Others;..\src\Security;..\src\Utils;..\src\Crypto;..\src\Math\EC"/>
       <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
       <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
     </SearchPaths>
     </SearchPaths>
+    <CodeGeneration>
+      <TargetCPU Value="x86_64"/>
+      <TargetOS Value="win64"/>
+      <Optimizations>
+        <OptimizationLevel Value="4"/>
+      </Optimizations>
+    </CodeGeneration>
     <Linking>
     <Linking>
       <Debugging>
       <Debugging>
         <UseHeaptrc Value="True"/>
         <UseHeaptrc Value="True"/>

+ 3 - 0
CryptoLib.Tests/FreePascal.Tests/CryptoLib.lpr

@@ -22,6 +22,9 @@ uses
   SecureRandomTests,
   SecureRandomTests,
   DigestRandomNumberTests,
   DigestRandomNumberTests,
   FixedPointTests,
   FixedPointTests,
+  AESTests,
+  BlockCipherVectorTests,
+  AESTestVectors,
   ClpFixedSecureRandom,
   ClpFixedSecureRandom,
   ClpIFixedSecureRandom;
   ClpIFixedSecureRandom;
 
 

+ 18 - 2
CryptoLib.Tests/FreePascal.Tests/CryptoLibConsole.Tests.lpi

@@ -30,7 +30,7 @@
         <PackageName Value="FCL"/>
         <PackageName Value="FCL"/>
       </Item2>
       </Item2>
     </RequiredPackages>
     </RequiredPackages>
-    <Units Count="18">
+    <Units Count="22">
       <Unit0>
       <Unit0>
         <Filename Value="CryptoLibConsole.lpr"/>
         <Filename Value="CryptoLibConsole.lpr"/>
         <IsPartOfProject Value="True"/>
         <IsPartOfProject Value="True"/>
@@ -103,6 +103,22 @@
         <Filename Value="..\src\Crypto\DigestRandomNumberTests.pas"/>
         <Filename Value="..\src\Crypto\DigestRandomNumberTests.pas"/>
         <IsPartOfProject Value="True"/>
         <IsPartOfProject Value="True"/>
       </Unit17>
       </Unit17>
+      <Unit18>
+        <Filename Value="..\src\Crypto\AESTests.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit18>
+      <Unit19>
+        <Filename Value="..\src\Crypto\BlockCipherVectorTests.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit19>
+      <Unit20>
+        <Filename Value="..\src\Crypto\AESTestVectors.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit20>
+      <Unit21>
+        <Filename Value="..\src\Math\EC\FixedPointTests.pas"/>
+        <IsPartOfProject Value="True"/>
+      </Unit21>
     </Units>
     </Units>
   </ProjectOptions>
   </ProjectOptions>
   <CompilerOptions>
   <CompilerOptions>
@@ -113,7 +129,7 @@
     </Target>
     </Target>
     <SearchPaths>
     <SearchPaths>
       <IncludeFiles Value="$(ProjOutDir)"/>
       <IncludeFiles Value="$(ProjOutDir)"/>
-      <OtherUnitFiles Value="..\src\Others;..\src\Asn1;..\src\Math\EC\Custom\Sec;..\src\Math;..\src\Security;..\src\Utils;..\src\Crypto"/>
+      <OtherUnitFiles Value="..\src\Others;..\src\Asn1;..\src\Math\EC\Custom\Sec;..\src\Math;..\src\Security;..\src\Utils;..\src\Crypto;..\src\Math\EC"/>
       <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
       <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
     </SearchPaths>
     </SearchPaths>
   </CompilerOptions>
   </CompilerOptions>

+ 3 - 0
CryptoLib.Tests/FreePascal.Tests/CryptoLibConsole.lpr

@@ -20,6 +20,9 @@ uses
   SecureRandomTests,
   SecureRandomTests,
   DigestRandomNumberTests,
   DigestRandomNumberTests,
   FixedPointTests,
   FixedPointTests,
+  AESTests,
+  BlockCipherVectorTests,
+  AESTestVectors,
   ClpFixedSecureRandom,
   ClpFixedSecureRandom,
   ClpIFixedSecureRandom;
   ClpIFixedSecureRandom;
 
 

+ 3 - 3
CryptoLib.Tests/src/Asn1/Asn1SequenceParserTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Asn1/DerApplicationSpecificTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Asn1/EqualsAndHashCodeTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Asn1/OIDTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 90 - 0
CryptoLib.Tests/src/Crypto/AESTestVectors.pas

@@ -0,0 +1,90 @@
+{ *********************************************************************************** }
+{ *                              CryptoLib Library                                  * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
+{ *                 Github Repository <https://github.com/Xor-el>                   * }
+
+{ *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
+{ *          or visit http://www.opensource.org/licenses/mit-license.php.           * }
+
+{ *                              Acknowledgements:                                  * }
+{ *                                                                                 * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
+
+{ * ******************************************************************************* * }
+
+(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
+
+unit AESTestVectors;
+
+interface
+
+uses
+  ClpCryptoLibTypes;
+
+type
+
+  TAESTestVectors = class sealed(TObject)
+
+  public
+    class var
+
+      FBlockCipherVectorKeys, FBlockCipherVectorInputs,
+      FBlockCipherVectorOutputs, FOfficialVectorKeys__AES256_CBC,
+      FOfficialVectorIVs_AES256_CBC, FOfficialVectorInputs_AES256_CBC,
+      FOfficialVectorOutputs_AES256_CBC: TCryptoLibStringArray;
+
+    class constructor AESTestVectors();
+
+  end;
+
+implementation
+
+{ TAESTestVectors }
+
+class constructor TAESTestVectors.AESTestVectors;
+begin
+
+  // Test vectors from the NIST standard tests and Brian Gladman's
+  // vector set
+  // http://fp.gladman.plus.com/cryptography_technology/rijndael
+  FBlockCipherVectorKeys := TCryptoLibStringArray.Create
+
+    (
+    // keylength 128 bits
+    '80000000000000000000000000000000', '00000000000000000000000000000080',
+    // keylength 192 bits
+    '000000000000000000000000000000000000000000000000',
+    // keylength 256 bits
+    '0000000000000000000000000000000000000000000000000000000000000000');
+
+  FBlockCipherVectorInputs := TCryptoLibStringArray.Create
+    ('00000000000000000000000000000000', '00000000000000000000000000000000',
+
+    '80000000000000000000000000000000',
+
+    '80000000000000000000000000000000');
+
+  FBlockCipherVectorOutputs := TCryptoLibStringArray.Create
+    ('0EDD33D3C621E546455BD8BA1418BEC8', '172AEAB3D507678ECAF455C12587ADB7',
+
+    '6CD02513E8D4DC986B4AFE087A60BD0C',
+
+    'DDC6BF790C15760D8D9AEB6F9A75FD4E');
+
+  // http://csrc.nist.gov/groups/STM/cavp/documents/aes/KAT_AES.zip
+  FOfficialVectorKeys__AES256_CBC := TCryptoLibStringArray.Create
+    ('C47B0294DBBBEE0FEC4757F22FFEEE3587CA4730C3D33B691DF38BAB076BC558',
+    '28D46CFFA158533194214A91E712FC2B45B518076675AFFD910EDECA5F41AC64');
+
+  FOfficialVectorIVs_AES256_CBC := TCryptoLibStringArray.Create
+    ('00000000000000000000000000000000', '00000000000000000000000000000000');
+
+  FOfficialVectorInputs_AES256_CBC := TCryptoLibStringArray.Create
+    ('00000000000000000000000000000000', '00000000000000000000000000000000');
+
+  FOfficialVectorOutputs_AES256_CBC := TCryptoLibStringArray.Create
+    ('46F2FB342D6F0AB477476FC501242C5F', '4BF3B0A69AEB6657794F2901B1440AD4');
+end;
+
+end.

+ 193 - 0
CryptoLib.Tests/src/Crypto/AESTests.pas

@@ -0,0 +1,193 @@
+{ *********************************************************************************** }
+{ *                              CryptoLib Library                                  * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
+{ *                 Github Repository <https://github.com/Xor-el>                   * }
+
+{ *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
+{ *          or visit http://www.opensource.org/licenses/mit-license.php.           * }
+
+{ *                              Acknowledgements:                                  * }
+{ *                                                                                 * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
+
+{ * ******************************************************************************* * }
+
+(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
+
+unit AESTests;
+
+interface
+
+{$IFDEF FPC}
+{$MODE DELPHI}
+{$ENDIF FPC}
+{$HINTS OFF}
+
+uses
+  SysUtils,
+{$IFDEF FPC}
+  fpcunit,
+  testregistry,
+{$ELSE}
+  TestFramework,
+{$ENDIF FPC}
+  AESTestVectors,
+  // ClpAesEngine,
+  // ClpIAesEngine,
+  ClpKeyParameter,
+  ClpIKeyParameter,
+  ClpParametersWithIV,
+  ClpIParametersWithIV,
+  ClpIBufferedCipher,
+  ClpParameterUtilities,
+  ClpCipherUtilities,
+  // ClpCbcBlockCipher,
+  // ClpICbcBlockCipher,
+  // ClpPaddedBufferedBlockCipher,
+  // ClpIPaddedBufferedBlockCipher,
+  ClpHex,
+  ClpArrayUtils,
+  ClpCryptoLibTypes;
+
+type
+
+  TCryptoLibTestCase = class abstract(TTestCase)
+
+  end;
+
+type
+
+  TTestAES = class(TCryptoLibTestCase)
+  private
+
+    procedure doAESTestWithIV(const cipher: IBufferedCipher;
+      const param: IParametersWithIV; const input, output: String);
+
+  protected
+    procedure SetUp; override;
+    procedure TearDown; override;
+  published
+
+    procedure TestAES256_CBC_PKCS7PADDING;
+
+  end;
+
+implementation
+
+{ TTestAES }
+
+procedure TTestAES.doAESTestWithIV(const cipher: IBufferedCipher;
+  const param: IParametersWithIV; const input, output: String);
+var
+  len1, len2: Int32;
+  LInput, LOutput, EncryptionResult, DecryptionResult: TBytes;
+begin
+  LInput := THex.Decode(input);
+  LOutput := THex.Decode(output);
+
+  cipher.Init(true, param);
+
+  // Encryption
+  // Single Pass
+  EncryptionResult := cipher.DoFinal(LInput);
+  { *
+    // Multi Pass
+    System.SetLength(EncryptionResult,
+    cipher.GetOutputSize(System.Length(LInput)));
+
+    len1 := cipher.ProcessBytes(LInput, 0, System.Length(LInput),
+    EncryptionResult, 0);
+
+    len1 := cipher.DoFinal(EncryptionResult, len1);
+    * }
+
+  cipher.Init(false, param);
+
+  // Decryption
+  // Single Pass
+  DecryptionResult := cipher.DoFinal(EncryptionResult);
+  { *
+    // Multi Pass
+    System.SetLength(DecryptionResult,
+    cipher.GetOutputSize(System.Length(EncryptionResult)));
+
+    len2 := cipher.ProcessBytes(EncryptionResult, 0,
+    System.Length(EncryptionResult), DecryptionResult, 0);
+
+    len2 := len2 + cipher.DoFinal(DecryptionResult, len2);
+
+    // remove padding important!!!
+    if (len2 < System.Length(DecryptionResult)) then
+    begin
+    System.Move(DecryptionResult[len2], DecryptionResult[0],
+    len2 * System.SizeOf(Byte));
+    System.SetLength(DecryptionResult, len2);
+    end;
+    * }
+
+  if (not TArrayUtils.AreEqual(LInput, DecryptionResult)) then
+  begin
+    Fail(Format('Decryption Failed - Expected %s but got %s',
+      [THex.Encode(LInput), THex.Encode(DecryptionResult)]));
+  end;
+end;
+
+procedure TTestAES.SetUp;
+begin
+  inherited;
+end;
+
+procedure TTestAES.TearDown;
+begin
+  inherited;
+
+end;
+
+procedure TTestAES.TestAES256_CBC_PKCS7PADDING;
+var
+  KeyParameter: IKeyParameter;
+  KeyParametersWithIV: IParametersWithIV;
+  keyBytes, IVBytes: TBytes;
+  cipher: IBufferedCipher;
+  input, output: string;
+  I: Int32;
+  // engine: IAesEngine;
+  // blockCipher: ICbcBlockCipher;
+begin
+
+  // // Set up
+  // engine := TAesEngine.Create();
+  // blockCipher := TCbcBlockCipher.Create(engine); // CBC
+  // cipher := TPaddedBufferedBlockCipher.Create(blockCipher);
+  // // Default scheme is PKCS5/PKCS7
+
+  cipher := TCipherUtilities.GetCipher('AES/CBC/PKCS7PADDING');
+
+  for I := System.Low(TAESTestVectors.FOfficialVectorKeys__AES256_CBC)
+    to System.Low(TAESTestVectors.FOfficialVectorKeys__AES256_CBC) do
+  begin
+    keyBytes := THex.Decode(TAESTestVectors.FOfficialVectorKeys__AES256_CBC[I]);
+    IVBytes := THex.Decode(TAESTestVectors.FOfficialVectorIVs_AES256_CBC[I]);
+    input := TAESTestVectors.FOfficialVectorInputs_AES256_CBC[I];
+    output := TAESTestVectors.FOfficialVectorOutputs_AES256_CBC[I];
+
+    KeyParametersWithIV := TParametersWithIV.Create
+      (TParameterUtilities.CreateKeyParameter('AES', keyBytes), IVBytes);
+
+    doAESTestWithIV(cipher, KeyParametersWithIV, input, output);
+  end;
+
+end;
+
+initialization
+
+// Register any test cases with the test runner
+
+{$IFDEF FPC}
+  RegisterTest(TTestAES);
+{$ELSE}
+  RegisterTest(TTestAES.Suite);
+{$ENDIF FPC}
+
+end.

+ 197 - 0
CryptoLib.Tests/src/Crypto/BlockCipherVectorTests.pas

@@ -0,0 +1,197 @@
+{ *********************************************************************************** }
+{ *                              CryptoLib Library                                  * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
+{ *                 Github Repository <https://github.com/Xor-el>                   * }
+
+{ *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
+{ *          or visit http://www.opensource.org/licenses/mit-license.php.           * }
+
+{ *                              Acknowledgements:                                  * }
+{ *                                                                                 * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
+
+{ * ******************************************************************************* * }
+
+(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
+
+unit BlockCipherVectorTests;
+
+interface
+
+{$IFDEF FPC}
+{$MODE DELPHI}
+{$ENDIF FPC}
+{$HINTS OFF}
+
+uses
+  SysUtils,
+{$IFDEF FPC}
+  fpcunit,
+  testregistry,
+{$ELSE}
+  TestFramework,
+{$ENDIF FPC}
+  AESTestVectors,
+  ClpIBlockCipher,
+  ClpICipherParameters,
+  ClpAesEngine,
+  ClpIAesEngine,
+  ClpKeyParameter,
+  ClpIKeyParameter,
+  ClpParametersWithIV,
+  ClpIParametersWithIV,
+  ClpBufferedBlockCipher,
+  ClpIBufferedBlockCipher,
+  ClpHex,
+  ClpArrayUtils,
+  ClpCryptoLibTypes;
+
+type
+
+  TCryptoLibTestCase = class abstract(TTestCase)
+
+  end;
+
+type
+
+  /// <summary>
+  /// a basic test that takes a cipher, key parameter, and an input and
+  /// output string. This test wraps the engine in a buffered block cipher
+  /// with padding disabled.
+  /// </summary>
+  TTestBlockCipherVector = class(TCryptoLibTestCase)
+  private
+
+    procedure doBlockCipherVectorTest(const engine: IBlockCipher;
+      const param: ICipherParameters; const input, output: String);
+
+  protected
+    procedure SetUp; override;
+    procedure TearDown; override;
+  published
+
+    procedure TestBlockCipherAESEngine;
+    procedure TestBadParameters;
+
+  end;
+
+implementation
+
+{ TTestBlockCipherVector }
+
+procedure TTestBlockCipherVector.doBlockCipherVectorTest
+  (const engine: IBlockCipher; const param: ICipherParameters;
+  const input, output: String);
+var
+  cipher: IBufferedBlockCipher;
+  len1, len2: Int32;
+  LKey, LInput, LOutput, outBytes: TBytes;
+begin
+  LInput := THex.Decode(input);
+  LOutput := THex.Decode(output);
+
+  cipher := TBufferedBlockCipher.Create(engine);
+
+  cipher.Init(true, param);
+
+  System.SetLength(outBytes, System.Length(LInput));
+
+  // len1 := cipher.ProcessBytes(LInput, 0, System.Length(LInput), outBytes, 0);
+  len1 := cipher.ProcessBytes(LInput, 0,
+    cipher.GetOutputSize(System.Length(LInput)), outBytes, 0);
+
+  cipher.DoFinal(outBytes, len1);
+
+  if (not TArrayUtils.AreEqual(outBytes, LOutput)) then
+  begin
+    Fail(Format('Encryption Failed - Expected %s but got %s',
+      [THex.Encode(LOutput), THex.Encode(outBytes)]));
+  end;
+
+  cipher.Init(false, param);
+
+  len2 := cipher.ProcessBytes(LOutput, 0, System.Length(LOutput), outBytes, 0);
+
+  cipher.DoFinal(outBytes, len2);
+
+  if (not TArrayUtils.AreEqual(LInput, outBytes)) then
+  begin
+    Fail(Format('Decryption Failed - Expected %s but got %s',
+      [THex.Encode(LInput), THex.Encode(outBytes)]));
+  end;
+end;
+
+procedure TTestBlockCipherVector.SetUp;
+begin
+  inherited;
+end;
+
+procedure TTestBlockCipherVector.TearDown;
+begin
+  inherited;
+
+end;
+
+procedure TTestBlockCipherVector.TestBadParameters;
+var
+  dudKey, iv: TBytes;
+  engine: IAesEngine;
+begin
+
+  engine := TAesEngine.Create();
+  //
+  // init tests
+  //
+
+  try
+    System.SetLength(dudKey, 6);
+    engine.Init(true, TKeyParameter.Create(dudKey) as IKeyParameter);
+    Fail('failed key length check');
+  except
+    on e: EArgumentCryptoLibException do
+    begin
+      // expected
+    end;
+
+  end;
+
+  try
+    System.SetLength(iv, 16);
+    engine.Init(true, TParametersWithIV.Create(nil, iv) as IParametersWithIV);
+    Fail('failed parameter check');
+  except
+    on e: EArgumentCryptoLibException do
+    begin
+      // expected
+    end;
+
+  end;
+end;
+
+procedure TTestBlockCipherVector.TestBlockCipherAESEngine;
+var
+  I: Int32;
+begin
+  for I := System.Low(TAESTestVectors.FBlockCipherVectorKeys)
+    to System.High(TAESTestVectors.FBlockCipherVectorKeys) do
+  begin
+    doBlockCipherVectorTest(TAesEngine.Create() as IAesEngine,
+      TKeyParameter.Create(THex.Decode(TAESTestVectors.FBlockCipherVectorKeys[I]
+      )) as IKeyParameter, TAESTestVectors.FBlockCipherVectorInputs[I],
+      TAESTestVectors.FBlockCipherVectorOutputs[I]);
+  end;
+
+end;
+
+initialization
+
+// Register any test cases with the test runner
+
+{$IFDEF FPC}
+  RegisterTest(TTestBlockCipherVector);
+{$ELSE}
+  RegisterTest(TTestBlockCipherVector.Suite);
+{$ENDIF FPC}
+
+end.

+ 3 - 3
CryptoLib.Tests/src/Crypto/DigestRandomNumberTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Math/BigIntegerTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Math/EC/Custom/Sec/SecP384R1FieldTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Math/EC/FixedPointTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Math/ECAlgorithmsTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Math/ECPointTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Others/ECDsa5Tests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Others/ECSchnorrTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Others/ECTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Others/NamedCurveTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Others/SignerUtilitiesTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Security/SecureRandomTests.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Utils/ClpFixedSecureRandom.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib.Tests/src/Utils/ClpIFixedSecureRandom.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Encodable.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1EncodableVector.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Generator.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1InputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Null.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Object.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1OctetString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1OutputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Sequence.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Set.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1StreamParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1TaggedObject.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpAsn1Tags.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerApplicationSpecific.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerApplicationSpecificParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerBitString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerGenerator.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerNull.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerOctetString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerOctetStringParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerOutputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerSequence.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerSequenceGenerator.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerSequenceParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerSet.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerSetParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerTaggedObject.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpBerTaggedObjectParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpConstructedOctetStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDefiniteLengthInputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerApplicationSpecific.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerBitString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerBmpString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerBoolean.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerEnumerated.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerExternal.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerExternalParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerGeneralString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerGenerator.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerGraphicString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerIA5String.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerInteger.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerNull.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerNumericString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerObjectIdentifier.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerOctetString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerOctetStringParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerOutputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerPrintableString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerSequence.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerSequenceGenerator.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerSequenceParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerSet.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerSetParser.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerStringBase.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerT61String.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerTaggedObject.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerUniversalString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerUtf8String.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerVideotexString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpDerVisibleString.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpIndefiniteLengthInputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpLimitedInputStream.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/ClpOidTokenizer.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/CryptoPro/ClpCryptoProObjectIdentifiers.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/CryptoPro/ClpECGost3410NamedCurves.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 40 - 7
CryptoLib/src/Asn1/Nist/ClpNistObjectIdentifiers.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 
@@ -32,11 +32,14 @@ type
 
 
     class var
     class var
 
 
-      FNistAlgorithm, FHashAlgs, FIdSha256, FIdSha384, FIdSha512, FIdSha224,
-      FIdSha512_224, FIdSha512_256, FIdSha3_224, FIdSha3_256, FIdSha3_384,
-      FIdSha3_512: IDerObjectIdentifier;
+      FNistAlgorithm, FHashAlgs, FAES, FIdSha256, FIdSha384, FIdSha512,
+      FIdSha224, FIdSha512_224, FIdSha512_256, FIdSha3_224, FIdSha3_256,
+      FIdSha3_384, FIdSha3_512, FIdAes128Cbc, FIdAes192Cbc,
+      FIdAes256Cbc: IDerObjectIdentifier;
 
 
+    class function GetNistAlgorithm: IDerObjectIdentifier; static; inline;
     class function GetHashAlgs: IDerObjectIdentifier; static; inline;
     class function GetHashAlgs: IDerObjectIdentifier; static; inline;
+    class function GetAES: IDerObjectIdentifier; static; inline;
     class function GetIdSha224: IDerObjectIdentifier; static; inline;
     class function GetIdSha224: IDerObjectIdentifier; static; inline;
     class function GetIdSha256: IDerObjectIdentifier; static; inline;
     class function GetIdSha256: IDerObjectIdentifier; static; inline;
     class function GetIdSha3_224: IDerObjectIdentifier; static; inline;
     class function GetIdSha3_224: IDerObjectIdentifier; static; inline;
@@ -47,7 +50,9 @@ type
     class function GetIdSha512: IDerObjectIdentifier; static; inline;
     class function GetIdSha512: IDerObjectIdentifier; static; inline;
     class function GetIdSha512_224: IDerObjectIdentifier; static; inline;
     class function GetIdSha512_224: IDerObjectIdentifier; static; inline;
     class function GetIdSha512_256: IDerObjectIdentifier; static; inline;
     class function GetIdSha512_256: IDerObjectIdentifier; static; inline;
-    class function GetNistAlgorithm: IDerObjectIdentifier; static; inline;
+    class function GetIdAes128Cbc: IDerObjectIdentifier; static; inline;
+    class function GetIdAes192Cbc: IDerObjectIdentifier; static; inline;
+    class function GetIdAes256Cbc: IDerObjectIdentifier; static; inline;
 
 
     class constructor NistObjectIdentifiers();
     class constructor NistObjectIdentifiers();
 
 
@@ -62,6 +67,7 @@ type
     //
     //
     class property NistAlgorithm: IDerObjectIdentifier read GetNistAlgorithm;
     class property NistAlgorithm: IDerObjectIdentifier read GetNistAlgorithm;
     class property HashAlgs: IDerObjectIdentifier read GetHashAlgs;
     class property HashAlgs: IDerObjectIdentifier read GetHashAlgs;
+    class property AES: IDerObjectIdentifier read GetAES;
     class property IdSha256: IDerObjectIdentifier read GetIdSha256;
     class property IdSha256: IDerObjectIdentifier read GetIdSha256;
     class property IdSha384: IDerObjectIdentifier read GetIdSha384;
     class property IdSha384: IDerObjectIdentifier read GetIdSha384;
     class property IdSha512: IDerObjectIdentifier read GetIdSha512;
     class property IdSha512: IDerObjectIdentifier read GetIdSha512;
@@ -72,6 +78,9 @@ type
     class property IdSha3_256: IDerObjectIdentifier read GetIdSha3_256;
     class property IdSha3_256: IDerObjectIdentifier read GetIdSha3_256;
     class property IdSha3_384: IDerObjectIdentifier read GetIdSha3_384;
     class property IdSha3_384: IDerObjectIdentifier read GetIdSha3_384;
     class property IdSha3_512: IDerObjectIdentifier read GetIdSha3_512;
     class property IdSha3_512: IDerObjectIdentifier read GetIdSha3_512;
+    class property IdAes128Cbc: IDerObjectIdentifier read GetIdAes128Cbc;
+    class property IdAes192Cbc: IDerObjectIdentifier read GetIdAes192Cbc;
+    class property IdAes256Cbc: IDerObjectIdentifier read GetIdAes256Cbc;
 
 
     class procedure Boot(); static;
     class procedure Boot(); static;
 
 
@@ -85,6 +94,7 @@ class procedure TNistObjectIdentifiers.Boot;
 begin
 begin
   FNistAlgorithm := TDerObjectIdentifier.Create('2.16.840.1.101.3.4');
   FNistAlgorithm := TDerObjectIdentifier.Create('2.16.840.1.101.3.4');
   FHashAlgs := NistAlgorithm.Branch('2');
   FHashAlgs := NistAlgorithm.Branch('2');
+  FAES := TDerObjectIdentifier.Create(NistAlgorithm.id + '.1');
 
 
   FIdSha256 := HashAlgs.Branch('1');
   FIdSha256 := HashAlgs.Branch('1');
   FIdSha384 := HashAlgs.Branch('2');
   FIdSha384 := HashAlgs.Branch('2');
@@ -96,6 +106,14 @@ begin
   FIdSha3_256 := HashAlgs.Branch('8');
   FIdSha3_256 := HashAlgs.Branch('8');
   FIdSha3_384 := HashAlgs.Branch('9');
   FIdSha3_384 := HashAlgs.Branch('9');
   FIdSha3_512 := HashAlgs.Branch('10');
   FIdSha3_512 := HashAlgs.Branch('10');
+  FIdAes128Cbc := TDerObjectIdentifier.Create(AES.id + '.2');
+  FIdAes192Cbc := TDerObjectIdentifier.Create(AES.id + '.22');
+  FIdAes256Cbc := TDerObjectIdentifier.Create(AES.id + '.42');
+end;
+
+class function TNistObjectIdentifiers.GetAES: IDerObjectIdentifier;
+begin
+  result := FAES;
 end;
 end;
 
 
 class function TNistObjectIdentifiers.GetHashAlgs: IDerObjectIdentifier;
 class function TNistObjectIdentifiers.GetHashAlgs: IDerObjectIdentifier;
@@ -103,6 +121,21 @@ begin
   result := FHashAlgs;
   result := FHashAlgs;
 end;
 end;
 
 
+class function TNistObjectIdentifiers.GetIdAes128Cbc: IDerObjectIdentifier;
+begin
+  result := FIdAes128Cbc;
+end;
+
+class function TNistObjectIdentifiers.GetIdAes192Cbc: IDerObjectIdentifier;
+begin
+  result := FIdAes192Cbc;
+end;
+
+class function TNistObjectIdentifiers.GetIdAes256Cbc: IDerObjectIdentifier;
+begin
+  result := FIdAes256Cbc;
+end;
+
 class function TNistObjectIdentifiers.GetIdSha224: IDerObjectIdentifier;
 class function TNistObjectIdentifiers.GetIdSha224: IDerObjectIdentifier;
 begin
 begin
   result := FIdSha224;
   result := FIdSha224;

+ 3 - 3
CryptoLib/src/Asn1/Oiw/ClpOiwObjectIdentifiers.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/Pkcs/ClpPkcsObjectIdentifiers.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/RossStandart/ClpRosstandartObjectIdentifiers.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

+ 3 - 3
CryptoLib/src/Asn1/Sec/ClpSecNamedCurves.pas

@@ -1,6 +1,6 @@
 { *********************************************************************************** }
 { *********************************************************************************** }
 { *                              CryptoLib Library                                  * }
 { *                              CryptoLib Library                                  * }
-{ *                    Copyright (c) 2018 Ugochukwu Mmaduekwe                       * }
+{ *                Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe                    * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 { *                 Github Repository <https://github.com/Xor-el>                   * }
 
 
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
 { *  Distributed under the MIT software license, see the accompanying file LICENSE  * }
@@ -8,8 +8,8 @@
 
 
 { *                              Acknowledgements:                                  * }
 { *                              Acknowledgements:                                  * }
 { *                                                                                 * }
 { *                                                                                 * }
-{ *        Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring        * }
-{ *                        the development of this library                          * }
+{ *      Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring     * }
+{ *                           development of this library                           * }
 
 
 { * ******************************************************************************* * }
 { * ******************************************************************************* * }
 
 

Some files were not shown because too many files changed in this diff