Skip to content

Commit

Permalink
remove the wrapping in a helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Jan 13, 2025
1 parent cd93417 commit 5d23683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/sun/security/util/KeyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public static String hashAlgFromHSS(PublicKey publicKey)
try {
DerValue val = new DerValue(publicKey.getEncoded());
val.data.getDerValue();
byte[] rawKey = new DerValue(val.data.getBitString()).getOctetString();
byte[] rawKey = val.data.getBitString();
// According to https://www.rfc-editor.org/rfc/rfc8554.html:
// Section 6.1: HSS public key is u32str(L) || pub[0], where pub[0]
// is the LMS public key for the top-level tree.
Expand Down

0 comments on commit 5d23683

Please sign in to comment.