Skip to content

Commit

Permalink
added check for unnecessary PBE parameter spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Sep 14, 2016
1 parent de6aac4 commit 631b779
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ else if (params instanceof PBEParameterSpec)
}
else
{
if (params instanceof PBEParameterSpec)
{
throw new InvalidAlgorithmParameterException("inappropriate parameter type: " + params.getClass().getName());
}
param = new KeyParameter(key.getEncoded());
}

Expand Down

0 comments on commit 631b779

Please sign in to comment.