Skip to content

Commit 1710ff9

Browse files
committed
Merge branch 'develop' into devsecops
2 parents 49717d5 + c61e628 commit 1710ff9

22 files changed

+135
-75
lines changed

itext.tests/itext.forms.tests/itext/forms/PdfEncryptionTest.cs

-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public virtual void EncryptedDocumentWithFormFields() {
7070
}
7171

7272
[NUnit.Framework.Test]
73-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
7473
public virtual void EncryptAes256Pdf2PermissionsTest01() {
7574
String filename = "encryptAes256Pdf2PermissionsTest01.pdf";
7675
int permissions = EncryptionConstants.ALLOW_FILL_IN | EncryptionConstants.ALLOW_SCREENREADERS | EncryptionConstants
@@ -107,7 +106,6 @@ public virtual void EncryptAes256Pdf2PermissionsTest01() {
107106
}
108107

109108
[NUnit.Framework.Test]
110-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
111109
public virtual void EncryptAes256Pdf2PermissionsTest02() {
112110
String filename = "encryptAes256Pdf2PermissionsTest02.pdf";
113111
// This test differs from the previous one (encryptAes256Pdf2PermissionsTest01) only in permissions.

itext.tests/itext.forms.tests/itext/forms/PdfFormFieldTest.cs

+23
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,29 @@ public virtual void PdfWithSignatureAndFontInBuilderFieldTest() {
15871587
, destinationFolder, "diff_"));
15881588
}
15891589

1590+
[NUnit.Framework.Test]
1591+
[LogMessage(FormsLogMessageConstants.FORM_FIELD_HAS_CYCLED_PARENT_STRUCTURE, Ignore = true)]
1592+
public virtual void FormFieldCycleRefTest() {
1593+
String fileName = destinationFolder + "formFieldCycleRefTest.pdf";
1594+
PdfDocument pdfDoc = new PdfDocument(CompareTool.CreateTestPdfWriter(fileName));
1595+
pdfDoc.SetTagged();
1596+
pdfDoc.InitializeOutlines();
1597+
PdfAcroForm acroForm = PdfAcroForm.GetAcroForm(pdfDoc, true);
1598+
PdfFormField formField = new CheckBoxFormFieldBuilder(pdfDoc, "TestCheck").SetWidgetRectangle(new Rectangle
1599+
(36, 560, 20, 20)).CreateCheckBox().SetValue("1", true);
1600+
PdfFormField child1 = new TextFormFieldBuilder(pdfDoc, "child").SetWidgetRectangle(new Rectangle(100, 300,
1601+
200, 20)).CreateText();
1602+
PdfFormField child2 = new TextFormFieldBuilder(pdfDoc, "another_name").SetWidgetRectangle(new Rectangle(100
1603+
, 250, 200, 20)).CreateText();
1604+
formField.AddKid(child1);
1605+
child1.AddKid(child2);
1606+
formField.SetParent(child2);
1607+
acroForm.AddField(formField);
1608+
pdfDoc.Close();
1609+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(fileName, sourceFolder + "cmp_formFieldCycleRefTest.pdf"
1610+
, destinationFolder, "diff_"));
1611+
}
1612+
15901613
//\cond DO_NOT_DOCUMENT
15911614
internal class CustomButtonFormField : PdfButtonFormField {
15921615
private int counter = 0;

itext.tests/itext.kernel.tests/itext/kernel/crypto/EncryptionInApprovedModeTest.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ You should have received a copy of the GNU Affero General Public License
2424
using NUnit.Framework;
2525
using iText.Bouncycastleconnector;
2626
using iText.Commons.Bouncycastle;
27-
using iText.Kernel.Logs;
2827
using iText.Kernel.Pdf;
2928
using iText.Kernel.Utils;
3029
using iText.Test;
31-
using iText.Test.Attributes;
3230

3331
namespace iText.Kernel.Crypto {
3432
[NUnit.Framework.Category("BouncyCastleIntegrationTest")]
@@ -59,7 +57,6 @@ public static void AfterClass() {
5957
}
6058

6159
[NUnit.Framework.Test]
62-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT)]
6360
public virtual void CheckMD5LogMessageWhileReadingPdfTest() {
6461
String fileName = "checkMD5LogMessageWhileReadingPdf.pdf";
6562
using (PdfDocument document = new PdfDocument(new PdfReader(sourceFolder + fileName))) {
@@ -68,7 +65,6 @@ public virtual void CheckMD5LogMessageWhileReadingPdfTest() {
6865

6966
// this test checks log message
7067
[NUnit.Framework.Test]
71-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT)]
7268
public virtual void CheckMD5LogMessageWhileCreatingPdfTest() {
7369
String fileName = "checkMD5LogMessageWhileCreatingPdf.pdf";
7470
using (PdfDocument document = new PdfDocument(CompareTool.CreateTestPdfWriter(destinationFolder + fileName
@@ -79,7 +75,6 @@ public virtual void CheckMD5LogMessageWhileCreatingPdfTest() {
7975

8076
// this test checks log message
8177
[NUnit.Framework.Test]
82-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Count = 3)]
8378
public virtual void CheckMD5LogMessageForEachPdfTest() {
8479
String fileName = "checkMD5LogMessageForEachPdf.pdf";
8580
for (int i = 0; i < 3; ++i) {
@@ -89,6 +84,6 @@ public virtual void CheckMD5LogMessageForEachPdfTest() {
8984
}
9085
}
9186
}
92-
// this test checks log message
87+
// this test checks absence of log messages
9388
}
9489
}

itext.tests/itext.kernel.tests/itext/kernel/crypto/pdfencryption/PdfEncryptionTest.cs

-10
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ public virtual void EncryptWithPasswordAes128() {
135135
}
136136

137137
[NUnit.Framework.Test]
138-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
139138
public virtual void EncryptWithPasswordAes256() {
140139
String filename = "encryptWithPasswordAes256.pdf";
141140
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256;
@@ -151,7 +150,6 @@ public virtual void EncryptWithPasswordAes128NoCompression() {
151150
}
152151

153152
[NUnit.Framework.Test]
154-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
155153
public virtual void EncryptWithPasswordAes256NoCompression() {
156154
String filename = "encryptWithPasswordAes256NoCompression.pdf";
157155
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256;
@@ -311,7 +309,6 @@ public virtual void EncryptWithPasswordAes128EmbeddedFilesOnly() {
311309
}
312310

313311
[NUnit.Framework.Test]
314-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
315312
public virtual void EncryptWithPasswordAes256EmbeddedFilesOnly() {
316313
String filename = "encryptWithPasswordAes256EmbeddedFilesOnly.pdf";
317314
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256 | EncryptionConstants.EMBEDDED_FILES_ONLY;
@@ -342,15 +339,13 @@ public virtual void EncryptWithPasswordAes256EmbeddedFilesOnly() {
342339
}
343340

344341
[NUnit.Framework.Test]
345-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
346342
public virtual void EncryptAes256Pdf2NotEncryptMetadata() {
347343
String filename = "encryptAes256Pdf2NotEncryptMetadata.pdf";
348344
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256 | EncryptionConstants.DO_NOT_ENCRYPT_METADATA;
349345
EncryptWithPassword2(filename, encryptionType, CompressionConstants.DEFAULT_COMPRESSION);
350346
}
351347

352348
[NUnit.Framework.Test]
353-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
354349
public virtual void EncryptAes256Pdf2NotEncryptMetadata02() {
355350
String filename = "encryptAes256Pdf2NotEncryptMetadata02.pdf";
356351
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256 | EncryptionConstants.DO_NOT_ENCRYPT_METADATA;
@@ -377,15 +372,13 @@ public virtual void EncryptAes256EncryptedStampingUpdate() {
377372
}
378373

379374
[NUnit.Framework.Test]
380-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
381375
public virtual void EncryptAes256FullCompression() {
382376
String filename = "encryptAes256FullCompression.pdf";
383377
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256;
384378
EncryptWithPassword2(filename, encryptionType, CompressionConstants.DEFAULT_COMPRESSION, true);
385379
}
386380

387381
[NUnit.Framework.Test]
388-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
389382
public virtual void EncryptWithPasswordAes256Pdf2() {
390383
String filename = "encryptWithPasswordAes256Pdf2.pdf";
391384
int encryptionType = EncryptionConstants.ENCRYPTION_AES_256;
@@ -402,7 +395,6 @@ public virtual void EncryptWithPasswordAes128Pdf2() {
402395
}
403396

404397
[NUnit.Framework.Test]
405-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
406398
public virtual void StampAndUpdateVersionNewAes256() {
407399
String filename = "stampAndUpdateVersionNewAes256.pdf";
408400
PdfDocument doc = new PdfDocument(new PdfReader(sourceFolder + "encryptedWithPasswordAes256.pdf", new ReaderProperties
@@ -414,7 +406,6 @@ public virtual void StampAndUpdateVersionNewAes256() {
414406
}
415407

416408
[NUnit.Framework.Test]
417-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
418409
public virtual void EncryptAes256Pdf2Permissions() {
419410
String filename = "encryptAes256Pdf2Permissions.pdf";
420411
int permissions = EncryptionConstants.ALLOW_FILL_IN | EncryptionConstants.ALLOW_SCREENREADERS | EncryptionConstants
@@ -461,7 +452,6 @@ public virtual void CheckMD5LogAbsenceInUnapprovedMode() {
461452

462453
// this test checks log message absence
463454
[NUnit.Framework.Test]
464-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true, Count = 2)]
465455
public virtual void DecryptAdobeWithPasswordAes256() {
466456
String filename = System.IO.Path.Combine(sourceFolder + "AdobeAes256.pdf").ToString();
467457
DecryptWithPassword(filename, "user".GetBytes());

itext.tests/itext.kernel.tests/itext/kernel/crypto/securityhandler/PubSecHandlerUsingAesGcmTest.cs

-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ You should have received a copy of the GNU Affero General Public License
3030
using iText.Commons.Utils;
3131
using iText.Kernel.Crypto;
3232
using iText.Kernel.Exceptions;
33-
using iText.Kernel.Logs;
3433
using iText.Kernel.Pdf;
3534
using iText.Kernel.Utils;
3635
using iText.Test;
@@ -54,7 +53,6 @@ public static void SetUp() {
5453
CreateOrClearDestinationFolder(DESTINATION_FOLDER);
5554
}
5655

57-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
5856
[NUnit.Framework.Test]
5957
public virtual void TestSimpleEncryptDecryptTest() {
6058
try {
@@ -72,7 +70,6 @@ public virtual void TestSimpleEncryptDecryptTest() {
7270
}
7371

7472
[LogMessage(VersionConforming.NOT_SUPPORTED_AES_GCM, Ignore = true)]
75-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
7673
[NUnit.Framework.Test]
7774
public virtual void TestSimpleEncryptDecryptPdf17Test() {
7875
try {
@@ -89,7 +86,6 @@ public virtual void TestSimpleEncryptDecryptPdf17Test() {
8986
DecryptWithCertificate(fileName, DESTINATION_FOLDER, "test.cer", "test.pem");
9087
}
9188

92-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
9389
[NUnit.Framework.Test]
9490
public virtual void DecryptExternalFileTest() {
9591
try {
@@ -101,7 +97,6 @@ public virtual void DecryptExternalFileTest() {
10197
DecryptWithCertificate("externalFile.pdf", SOURCE_FOLDER, "decrypter.cert.pem", "signerkey.pem");
10298
}
10399

104-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
105100
[NUnit.Framework.Test]
106101
public virtual void InvalidCryptFilterTest() {
107102
String fileName = "invalidCryptFilter.pdf";

itext.tests/itext.kernel.tests/itext/kernel/crypto/securityhandler/StandardHandlerUsingAesGcmTest.cs

-12
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ You should have received a copy of the GNU Affero General Public License
2525
using iText.Bouncycastleconnector;
2626
using iText.Commons.Bouncycastle;
2727
using iText.Kernel.Exceptions;
28-
using iText.Kernel.Logs;
2928
using iText.Kernel.Pdf;
3029
using iText.Kernel.Utils;
3130
using iText.Kernel.Utils.Objectpathitems;
@@ -52,7 +51,6 @@ public static void SetUp() {
5251
}
5352

5453
[NUnit.Framework.Test]
55-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
5654
public virtual void SimpleEncryptDecryptTest() {
5755
String srcFile = SRC + "simpleDocument.pdf";
5856
String encryptedCmpFile = SRC + "cmp_encryptedSimpleDocument.pdf";
@@ -74,7 +72,6 @@ public virtual void SimpleEncryptDecryptTest() {
7472

7573
[NUnit.Framework.Test]
7674
[LogMessage(VersionConforming.NOT_SUPPORTED_AES_GCM)]
77-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
7875
public virtual void SimpleEncryptDecryptPdf15Test() {
7976
String srcFile = SRC + "simpleDocument.pdf";
8077
String outFile = DEST + "notSupportedVersionDocument.pdf";
@@ -87,7 +84,6 @@ public virtual void SimpleEncryptDecryptPdf15Test() {
8784
}
8885

8986
[NUnit.Framework.Test]
90-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
9187
public virtual void KnownOutputTest() {
9288
String srcFile = SRC + "encryptedDocument.pdf";
9389
String outFile = DEST + "encryptedDocument.pdf";
@@ -100,29 +96,25 @@ public virtual void KnownOutputTest() {
10096
}
10197

10298
// In all these tampered files, the stream content of object 14 has been modified.
103-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
10499
[NUnit.Framework.Test]
105100
public virtual void MacTamperedTest() {
106101
String srcFile = SRC + "encryptedDocumentTamperedMac.pdf";
107102
AssertTampered(srcFile);
108103
}
109104

110-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
111105
[NUnit.Framework.Test]
112106
public virtual void InitVectorTamperedTest() {
113107
String srcFile = SRC + "encryptedDocumentTamperedIv.pdf";
114108
AssertTampered(srcFile);
115109
}
116110

117-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
118111
[NUnit.Framework.Test]
119112
public virtual void CiphertextTamperedTest() {
120113
String srcFile = SRC + "encryptedDocumentTamperedCiphertext.pdf";
121114
AssertTampered(srcFile);
122115
}
123116

124117
[NUnit.Framework.Test]
125-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
126118
[LogMessage(iText.IO.Logs.IoLogMessageConstant.ENCRYPTION_ENTRIES_P_AND_ENCRYPT_METADATA_NOT_CORRESPOND_PERMS_ENTRY
127119
)]
128120
public virtual void PdfEncryptionWithEmbeddedFilesTest() {
@@ -158,7 +150,6 @@ public virtual void PdfEncryptionWithEmbeddedFilesTest() {
158150
}
159151

160152
[NUnit.Framework.Test]
161-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
162153
public virtual void PdfEncryptionWithMetadataTest() {
163154
byte[] documentId = new byte[] { (byte)88, (byte)189, (byte)192, (byte)48, (byte)240, (byte)200, (byte)87,
164155
(byte)183, (byte)244, (byte)119, (byte)224, (byte)109, (byte)226, (byte)173, (byte)32, (byte)90 };
@@ -191,7 +182,6 @@ public virtual void PdfEncryptionWithMetadataTest() {
191182
}
192183

193184
[NUnit.Framework.Test]
194-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
195185
public virtual void EncryptPdfWithMissingCFTest() {
196186
byte[] documentId = new byte[] { (byte)88, (byte)189, (byte)192, (byte)48, (byte)240, (byte)200, (byte)87,
197187
(byte)183, (byte)244, (byte)119, (byte)224, (byte)109, (byte)226, (byte)173, (byte)32, (byte)90 };
@@ -206,7 +196,6 @@ public virtual void EncryptPdfWithMissingCFTest() {
206196
}
207197

208198
[NUnit.Framework.Test]
209-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
210199
public virtual void EncryptPdfWithMissingStdCFTest() {
211200
byte[] documentId = new byte[] { (byte)88, (byte)189, (byte)192, (byte)48, (byte)240, (byte)200, (byte)87,
212201
(byte)183, (byte)244, (byte)119, (byte)224, (byte)109, (byte)226, (byte)173, (byte)32, (byte)90 };
@@ -226,7 +215,6 @@ public virtual void EncryptPdfWithMissingStdCFTest() {
226215
}
227216

228217
[NUnit.Framework.Test]
229-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
230218
public virtual void EncryptPdfWithMissingCFMTest() {
231219
byte[] documentId = new byte[] { (byte)88, (byte)189, (byte)192, (byte)48, (byte)240, (byte)200, (byte)87,
232220
(byte)183, (byte)244, (byte)119, (byte)224, (byte)109, (byte)226, (byte)173, (byte)32, (byte)90 };

itext.tests/itext.kernel.tests/itext/kernel/mac/MacIntegrityProtectorCreationTest.cs

+3-10
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public static void AfterClass() {
6565
}
6666

6767
[NUnit.Framework.Test]
68-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
6968
public virtual void StandaloneMacStandardEncryptionTest() {
7069
String fileName = "standaloneMacStandardEncryptionTest.pdf";
7170
String outputFileName = DESTINATION_FOLDER + fileName;
@@ -82,7 +81,6 @@ public virtual void StandaloneMacStandardEncryptionTest() {
8281
}
8382

8483
[NUnit.Framework.Test]
85-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
8684
public virtual void NoMacProtectionTest() {
8785
String fileName = "noMacProtectionTest.pdf";
8886
String outputFileName = DESTINATION_FOLDER + fileName;
@@ -115,21 +113,20 @@ public virtual void MacEncryptionWithAesGcmTest() {
115113
}
116114

117115
[NUnit.Framework.Test]
118-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
119116
[LogMessage(iText.IO.Logs.IoLogMessageConstant.PDF_WRITER_CLOSING_FAILED)]
120117
public virtual void StandaloneMacUnwritableStreamTest() {
121118
WriterProperties writerProperties = new WriterProperties().SetPdfVersion(PdfVersion.PDF_2_0).SetStandardEncryption
122119
(PASSWORD, PASSWORD, 0, EncryptionConstants.ENCRYPTION_AES_256, new MacProperties(MacProperties.MacDigestAlgorithm
123120
.SHA_256));
124-
MemoryStream unwritableStream = new _MemoryStream_152();
121+
MemoryStream unwritableStream = new _MemoryStream_147();
125122
using (PdfDocument pdfDoc = new PdfDocument(new PdfWriter(unwritableStream, writerProperties))) {
126123
pdfDoc.AddNewPage().AddAnnotation(new PdfTextAnnotation(new Rectangle(100, 100, 100, 100)));
127124
}
128125
unwritableStream.Dispose();
129126
}
130127

131-
private sealed class _MemoryStream_152 : MemoryStream {
132-
public _MemoryStream_152() {
128+
private sealed class _MemoryStream_147 : MemoryStream {
129+
public _MemoryStream_147() {
133130
}
134131

135132
public override void Write(byte[] b, int off, int len) {
@@ -138,7 +135,6 @@ public override void Write(byte[] b, int off, int len) {
138135
}
139136

140137
[NUnit.Framework.Test]
141-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
142138
public virtual void StandaloneMacWithAllHashAlgorithmsTest() {
143139
for (int i = 0; i < EnumUtil.GetAllValuesOfEnum<MacProperties.MacDigestAlgorithm>().Count; i++) {
144140
String fileName = "standaloneMacWithAllHashAlgorithmsTest" + (i + 1) + ".pdf";
@@ -159,7 +155,6 @@ public virtual void StandaloneMacWithAllHashAlgorithmsTest() {
159155
}
160156

161157
[NUnit.Framework.Test]
162-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
163158
public virtual void StandaloneMacPdfVersionNotSetTest() {
164159
String fileName = "standaloneMacPdfVersionNotSetTest.pdf";
165160
String outputFileName = DESTINATION_FOLDER + fileName;
@@ -209,7 +204,6 @@ public virtual void AddMacOnAppendModeTest() {
209204
}
210205

211206
[NUnit.Framework.Test]
212-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
213207
public virtual void AddMacWithDisableMacPropertyTest() {
214208
// MAC should not be added in disable MAC mode even if it was provided with writer properties
215209
String fileName = "addMacWithDisableMacPropertyTest.pdf";
@@ -280,7 +274,6 @@ public virtual void StandaloneMacOldEncryptionAlgorithmTest() {
280274
}
281275

282276
[NUnit.Framework.Test]
283-
[LogMessage(KernelLogMessageConstant.MD5_IS_NOT_FIPS_COMPLIANT, Ignore = true)]
284277
public virtual void StandaloneMacPublicKeyEncryptionTest() {
285278
try {
286279
BouncyCastleFactoryCreator.GetFactory().IsEncryptionFeatureSupported(0, true);

0 commit comments

Comments
 (0)