diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj b/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj index 2b596f2..ecc53ab 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj @@ -1,7 +1,7 @@  iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core. - 1.3.3 + 1.3.4 latest Vahid Nasiri netstandard1.3;netstandard2.0 @@ -28,7 +28,7 @@ - + @@ -42,8 +42,8 @@ NETSTANDARD1_3 - - + + diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/OcspClientBouncyCastle.cs b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/OcspClientBouncyCastle.cs index cee0d0e..e612173 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/OcspClientBouncyCastle.cs +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/OcspClientBouncyCastle.cs @@ -7,6 +7,7 @@ using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Asn1.Ocsp; +using System.Collections.Generic; namespace iTextSharp.text.pdf { @@ -62,7 +63,7 @@ public byte[] GetEncoded() outp.Dispose(); HttpWebResponse response = (HttpWebResponse)con.GetResponseAsync().Result; if (response.StatusCode != HttpStatusCode.OK) - throw new IOException($"Invalid HTTP response: {(int) response.StatusCode}"); + throw new IOException($"Invalid HTTP response: {(int)response.StatusCode}"); Stream inp = response.GetResponseStream(); OcspResp ocspResponse = new OcspResp(inp); inp.Dispose(); @@ -114,8 +115,8 @@ private static OcspReq generateOcspRequest(X509Certificate issuerCert, BigIntege gen.AddRequest(id); // create details for nonce extension - ArrayList oids = new ArrayList(); - ArrayList values = new ArrayList(); + var oids = new List(); + var values = new List(); oids.Add(OcspObjectIdentifiers.PkixOcspNonce); values.Add(new X509Extension(false, new DerOctetString(new DerOctetString(PdfEncryption.CreateDocumentId()).GetEncoded()))); diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/crypto/AESCipher.cs b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/crypto/AESCipher.cs index 79701d3..8a8c485 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/crypto/AESCipher.cs +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/crypto/AESCipher.cs @@ -6,7 +6,7 @@ namespace iTextSharp.text.pdf.crypto { - /// + /// /// Creates an AES Cipher with CBC and padding PKCS5/7. /// @author Paulo Soares (psoares@consiste.pt) /// @@ -19,7 +19,7 @@ public class AesCipher /// public AesCipher(bool forEncryption, byte[] key, byte[] iv) { - IBlockCipher aes = new AesFastEngine(); + IBlockCipher aes = new AesEngine(); IBlockCipher cbc = new CbcBlockCipher(aes); _bp = new PaddedBufferedBlockCipher(cbc); KeyParameter kp = new KeyParameter(key);