Skip to content

Commit

Permalink
Handle DER with trailer field in PSS parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Scheel <[email protected]>
  • Loading branch information
cipherboy committed Apr 3, 2020
1 parent 8107b46 commit 64b8fc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}

Expand Down

0 comments on commit 64b8fc7

Please sign in to comment.