We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 347c2af + 3abf79d commit c3bb3ecCopy full SHA for c3bb3ec
pg/src/test/java/org/bouncycastle/bcpg/test/OnePassSignaturePacketTest.java
@@ -105,8 +105,10 @@ private void roundtripV3Packet()
105
isNull("round-tripped OPS v3 MUST NOT have salt",
106
after.getSalt());
107
108
- isEncodingEqual("Packet encoding mismatch",
109
- before, after);
+ if (before.hasNewPacketFormat() && newTypeIdFormat)
+ {
110
+ isEncodingEqual(before, after);
111
+ }
112
}
113
114
@@ -178,7 +180,10 @@ private void roundtripV6Packet()
178
180
isEncodingEqual("round-tripped OPS salt mismatch",
179
181
before.getSalt(), after.getSalt());
182
- isEncodingEqual(before, after);
183
184
185
186
187
188
189
0 commit comments