8291509: Minor cleanup could be done in sun.security

Reviewed-by: weijun
This commit is contained in:
Mark Powers 2022-09-15 19:59:53 +00:00 committed by Weijun Wang
parent 6beeb8471c
commit 4cec141a90
298 changed files with 2650 additions and 3262 deletions

View file

@ -160,7 +160,7 @@ enum SSLTrafficKeyDerivation implements SSLKeyDerivationGenerator {
}
private static byte[] createHkdfInfo(
byte[] label, int length) throws IOException {
byte[] label, int length) {
byte[] info = new byte[4 + label.length];
ByteBuffer m = ByteBuffer.wrap(info);
try {
@ -185,7 +185,7 @@ enum SSLTrafficKeyDerivation implements SSLKeyDerivationGenerator {
private final byte[] label;
private final boolean isIv;
private KeySchedule(String label, boolean isIv) {
KeySchedule(String label, boolean isIv) {
this.label = ("tls13 " + label).getBytes();
this.isIv = isIv;
}