Skip to content

Commit

Permalink
simpler comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Jan 14, 2025
1 parent 5d23683 commit c8c1ec3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/java.base/share/classes/sun/security/provider/HSS.java
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,7 @@ public String toString() {
@Override
protected void parseKeyBits() throws InvalidKeyException {
byte[] keyArray = getKey().toByteArray();
// Check less than minimum length to make sure this method works as expected
if (keyArray.length < 12) {
if (keyArray.length < 12) { // More length check in LMSPublicKey
throw new InvalidKeyException("LMS public key is too short");
}
if (keyArray[0] == DerValue.tag_OctetString
Expand Down

0 comments on commit c8c1ec3

Please sign in to comment.