Skip to content

Commit 3135ba7

Browse files
committed
Removed zero check since it is already verified
1 parent 69dae3e commit 3135ba7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.java

-5
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
188188
throw new SignatureException("Invalid JOSE signature format.");
189189
}
190190

191-
// check for 0 r or s here since we have the values
192-
if (BigInteger.ZERO.equals(r) || BigInteger.ZERO.equals(s)) {
193-
throw new SignatureException("R or S value cannot be zero.");
194-
}
195-
196191
BigInteger order = publicKey.getParams().getOrder();
197192

198193
// R and S must be less than N

0 commit comments

Comments
 (0)