We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a43ab commit 5ad359fCopy full SHA for 5ad359f
test/net/i2p/crypto/eddsa/EdDSAEngineTest.java
@@ -8,6 +8,7 @@
8
import java.security.PrivateKey;
9
import java.security.PublicKey;
10
import java.security.Signature;
11
+import java.security.SignatureException;
12
13
import net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable;
14
import net.i2p.crypto.eddsa.spec.EdDSAParameterSpec;
@@ -82,7 +83,7 @@ public void testVerifyWrongSigLength() throws Exception {
82
83
byte[] message = "This is a secret message".getBytes(Charset.forName("UTF-8"));
84
sgr.update(message);
85
- exception.expect(IllegalArgumentException.class);
86
+ exception.expect(SignatureException.class);
87
exception.expectMessage("signature length is wrong");
88
sgr.verify(new byte[] {0});
89
}
0 commit comments