Skip to content

Commit

Permalink
TKSS-764: Backport JDK-8318340: Improve RSA key implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshajiang committed Apr 17, 2024
1 parent 17dfb5e commit 27316a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,6 @@ public AlgorithmParameterSpec getParams() {
return keyParams;
}

// return a string representation of this key for debugging
@Override
public String toString() {
return "SunRsaSign " + type.keyAlgo + " private CRT key, "
+ n.bitLength() + " bits" + "\n params: " + keyParams
+ "\n modulus: " + n + "\n private exponent: " + d;
}

// utility method for parsing DER encoding of RSA private keys in PKCS#1
// format as defined in RFC 8017 Appendix A.1.2, i.e. SEQ of version, n,
// e, d, p, q, pe, qe, and coeff, and return the parsed components.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,6 @@ public AlgorithmParameterSpec getParams() {
return keyParams;
}

// return a string representation of this key for debugging
@Override
public String toString() {
return "Sun " + type.keyAlgo + " private key, " + n.bitLength()
+ " bits" + "\n params: " + keyParams + "\n modulus: " + n
+ "\n private exponent: " + d;
}

/**
* Restores the state of this object from the stream.
* <p>
Expand Down

0 comments on commit 27316a8

Please sign in to comment.