@@ -25,7 +25,6 @@ You should have received a copy of the GNU Affero General Public License
25
25
using iText . Bouncycastleconnector ;
26
26
using iText . Commons . Bouncycastle ;
27
27
using iText . Kernel . Exceptions ;
28
- using iText . Kernel . Logs ;
29
28
using iText . Kernel . Pdf ;
30
29
using iText . Kernel . Utils ;
31
30
using iText . Kernel . Utils . Objectpathitems ;
@@ -52,7 +51,6 @@ public static void SetUp() {
52
51
}
53
52
54
53
[ NUnit . Framework . Test ]
55
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
56
54
public virtual void SimpleEncryptDecryptTest ( ) {
57
55
String srcFile = SRC + "simpleDocument.pdf" ;
58
56
String encryptedCmpFile = SRC + "cmp_encryptedSimpleDocument.pdf" ;
@@ -74,7 +72,6 @@ public virtual void SimpleEncryptDecryptTest() {
74
72
75
73
[ NUnit . Framework . Test ]
76
74
[ LogMessage ( VersionConforming . NOT_SUPPORTED_AES_GCM ) ]
77
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
78
75
public virtual void SimpleEncryptDecryptPdf15Test ( ) {
79
76
String srcFile = SRC + "simpleDocument.pdf" ;
80
77
String outFile = DEST + "notSupportedVersionDocument.pdf" ;
@@ -87,7 +84,6 @@ public virtual void SimpleEncryptDecryptPdf15Test() {
87
84
}
88
85
89
86
[ NUnit . Framework . Test ]
90
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
91
87
public virtual void KnownOutputTest ( ) {
92
88
String srcFile = SRC + "encryptedDocument.pdf" ;
93
89
String outFile = DEST + "encryptedDocument.pdf" ;
@@ -100,29 +96,25 @@ public virtual void KnownOutputTest() {
100
96
}
101
97
102
98
// In all these tampered files, the stream content of object 14 has been modified.
103
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
104
99
[ NUnit . Framework . Test ]
105
100
public virtual void MacTamperedTest ( ) {
106
101
String srcFile = SRC + "encryptedDocumentTamperedMac.pdf" ;
107
102
AssertTampered ( srcFile ) ;
108
103
}
109
104
110
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
111
105
[ NUnit . Framework . Test ]
112
106
public virtual void InitVectorTamperedTest ( ) {
113
107
String srcFile = SRC + "encryptedDocumentTamperedIv.pdf" ;
114
108
AssertTampered ( srcFile ) ;
115
109
}
116
110
117
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
118
111
[ NUnit . Framework . Test ]
119
112
public virtual void CiphertextTamperedTest ( ) {
120
113
String srcFile = SRC + "encryptedDocumentTamperedCiphertext.pdf" ;
121
114
AssertTampered ( srcFile ) ;
122
115
}
123
116
124
117
[ NUnit . Framework . Test ]
125
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
126
118
[ LogMessage ( iText . IO . Logs . IoLogMessageConstant . ENCRYPTION_ENTRIES_P_AND_ENCRYPT_METADATA_NOT_CORRESPOND_PERMS_ENTRY
127
119
) ]
128
120
public virtual void PdfEncryptionWithEmbeddedFilesTest ( ) {
@@ -158,7 +150,6 @@ public virtual void PdfEncryptionWithEmbeddedFilesTest() {
158
150
}
159
151
160
152
[ NUnit . Framework . Test ]
161
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
162
153
public virtual void PdfEncryptionWithMetadataTest ( ) {
163
154
byte [ ] documentId = new byte [ ] { ( byte ) 88 , ( byte ) 189 , ( byte ) 192 , ( byte ) 48 , ( byte ) 240 , ( byte ) 200 , ( byte ) 87 ,
164
155
( 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() {
191
182
}
192
183
193
184
[ NUnit . Framework . Test ]
194
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
195
185
public virtual void EncryptPdfWithMissingCFTest ( ) {
196
186
byte [ ] documentId = new byte [ ] { ( byte ) 88 , ( byte ) 189 , ( byte ) 192 , ( byte ) 48 , ( byte ) 240 , ( byte ) 200 , ( byte ) 87 ,
197
187
( 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() {
206
196
}
207
197
208
198
[ NUnit . Framework . Test ]
209
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
210
199
public virtual void EncryptPdfWithMissingStdCFTest ( ) {
211
200
byte [ ] documentId = new byte [ ] { ( byte ) 88 , ( byte ) 189 , ( byte ) 192 , ( byte ) 48 , ( byte ) 240 , ( byte ) 200 , ( byte ) 87 ,
212
201
( 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() {
226
215
}
227
216
228
217
[ NUnit . Framework . Test ]
229
- [ LogMessage ( KernelLogMessageConstant . MD5_IS_NOT_FIPS_COMPLIANT , Ignore = true ) ]
230
218
public virtual void EncryptPdfWithMissingCFMTest ( ) {
231
219
byte [ ] documentId = new byte [ ] { ( byte ) 88 , ( byte ) 189 , ( byte ) 192 , ( byte ) 48 , ( byte ) 240 , ( byte ) 200 , ( byte ) 87 ,
232
220
( byte ) 183 , ( byte ) 244 , ( byte ) 119 , ( byte ) 224 , ( byte ) 109 , ( byte ) 226 , ( byte ) 173 , ( byte ) 32 , ( byte ) 90 } ;
0 commit comments