diff --git a/org/mozilla/jss/provider/java/security/RSAPSSAlgorithmParameters.java b/org/mozilla/jss/provider/java/security/RSAPSSAlgorithmParameters.java index 1c556bc07..1c6438996 100644 --- a/org/mozilla/jss/provider/java/security/RSAPSSAlgorithmParameters.java +++ b/org/mozilla/jss/provider/java/security/RSAPSSAlgorithmParameters.java @@ -124,7 +124,7 @@ private void decode(DerInputStream in , byte[] encoded) throws IOException { // Sequence has 3 members, trailer field ignored DerValue seq[] = in.getSequence(3); - if(seq.length != 3) { + if(seq.length < 3 || seq.length > 4) { throw new IOException("Invalid data!"); }