Skip to content

Commit 591466b

Browse files
committed
Make PdfEncryption constants internal to avoid confusions with PdfWriter.ENCRYPTION_XYZ constants
1 parent 993de4a commit 591466b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.</Description>
4-
<VersionPrefix>3.7.1</VersionPrefix>
4+
<VersionPrefix>3.7.2</VersionPrefix>
55
<Authors>Vahid Nasiri</Authors>
66
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;netstandard2.0;net462;</TargetFrameworks>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>

src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfEncryption.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ namespace iTextSharp.text.pdf;
1414
/// </summary>
1515
public class PdfEncryption
1616
{
17-
public const int STANDARD_ENCRYPTION_40 = 2;
18-
public const int STANDARD_ENCRYPTION_128 = 3;
19-
public const int AES_128 = 4;
20-
public const int AES_256 = 5;
21-
public const int AES_256_V3 = 6;
17+
internal const int STANDARD_ENCRYPTION_40 = 2;
18+
internal const int STANDARD_ENCRYPTION_128 = 3;
19+
internal const int AES_128 = 4;
20+
internal const int AES_256 = 5;
21+
internal const int AES_256_V3 = 6;
2222

2323
private const int VALIDATION_SALT_OFFSET = 32;
2424
private const int KEY_SALT_OFFSET = 40;

0 commit comments

Comments
 (0)