@@ -1370,7 +1370,7 @@ public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception
13701370 @ Test
13711371 public void signatureWithAllZerosShouldFail () throws Exception {
13721372 exception .expect (SignatureException .class );
1373- exception .expectMessage ("Invalid Signature: All Zeros ." );
1373+ exception .expectMessage ("Invalid signature format ." );
13741374
13751375 ECPublicKey pubKey = (ECPublicKey ) readPublicKeyFromFile (PUBLIC_KEY_FILE_256 , "EC" );
13761376
@@ -1382,7 +1382,7 @@ public void signatureWithAllZerosShouldFail() throws Exception {
13821382 @ Test
13831383 public void signatureWithRZeroShouldFail () throws Exception {
13841384 exception .expect (SignatureException .class );
1385- exception .expectMessage ("Invalid Signature: All Zeros for R value ." );
1385+ exception .expectMessage ("Invalid signature format ." );
13861386
13871387 ECPublicKey publicKey = (ECPublicKey ) readPublicKeyFromFile (PUBLIC_KEY_FILE_256 , "EC" );
13881388 ECPrivateKey privateKey = (ECPrivateKey ) readPrivateKeyFromFile (PRIVATE_KEY_FILE_256 , "EC" );
@@ -1408,7 +1408,7 @@ public void signatureWithRZeroShouldFail() throws Exception {
14081408 @ Test
14091409 public void signatureWithSZeroShouldFail () throws Exception {
14101410 exception .expect (SignatureException .class );
1411- exception .expectMessage ("Invalid Signature: All Zeros for S value ." );
1411+ exception .expectMessage ("Invalid signature format ." );
14121412
14131413 ECPublicKey publicKey = (ECPublicKey ) readPublicKeyFromFile (PUBLIC_KEY_FILE_256 , "EC" );
14141414 ECPrivateKey privateKey = (ECPrivateKey ) readPrivateKeyFromFile (PRIVATE_KEY_FILE_256 , "EC" );
@@ -1434,7 +1434,7 @@ public void signatureWithSZeroShouldFail() throws Exception {
14341434 @ Test
14351435 public void signatureWithRValueNotLessThanOrderShouldFail () throws Exception {
14361436 exception .expect (SignatureException .class );
1437- exception .expectMessage ("The difference between R value and order should be greater than one ." );
1437+ exception .expectMessage ("Invalid signature format ." );
14381438
14391439 ECPublicKey publicKey = (ECPublicKey ) readPublicKeyFromFile (PUBLIC_KEY_FILE_256 , "EC" );
14401440 ECPrivateKey privateKey = (ECPrivateKey ) readPrivateKeyFromFile (PRIVATE_KEY_FILE_256 , "EC" );
@@ -1452,7 +1452,7 @@ public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
14521452 @ Test
14531453 public void signatureWithSValueNotLessThanOrderShouldFail () throws Exception {
14541454 exception .expect (SignatureException .class );
1455- exception .expectMessage ("The difference between S value and order should be greater than one ." );
1455+ exception .expectMessage ("Invalid signature format ." );
14561456
14571457 ECPublicKey publicKey = (ECPublicKey ) readPublicKeyFromFile (PUBLIC_KEY_FILE_256 , "EC" );
14581458 ECPrivateKey privateKey = (ECPrivateKey ) readPrivateKeyFromFile (PRIVATE_KEY_FILE_256 , "EC" );
0 commit comments