Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rubin committed Aug 14, 2023
1 parent 9defe72 commit 2228443
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ public void verifyBadSignature(TestParams params) throws GeneralSecurityExceptio
@MethodSource("params")
public void verifyTruncatedSignature(TestParams params) throws GeneralSecurityException {
params.verifier.update(params.message);
final byte[] badSignature = Arrays.copyOf(params.goodSignature, params.goodSignature.length - 1);
final byte[] badSignature =
Arrays.copyOf(params.goodSignature, params.goodSignature.length - 1);
// Truncated signatures always throw now.
assertThrows(SignatureException.class, () -> params.verifier.verify(badSignature));
}
Expand All @@ -443,7 +444,8 @@ public void verifyTruncatedSignature(TestParams params) throws GeneralSecurityEx
@MethodSource("params")
public void verifyExtendedSignature(TestParams params) throws GeneralSecurityException {
params.verifier.update(params.message);
final byte[] badSignature = Arrays.copyOf(params.goodSignature, params.goodSignature.length + 1);
final byte[] badSignature =
Arrays.copyOf(params.goodSignature, params.goodSignature.length + 1);
// Extended signatures always throw now.
assertThrows(SignatureException.class, () -> params.verifier.verify(badSignature));
}
Expand Down

0 comments on commit 2228443

Please sign in to comment.