mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8291509: Minor cleanup could be done in sun.security
Reviewed-by: weijun
This commit is contained in:
parent
6beeb8471c
commit
4cec141a90
298 changed files with 2650 additions and 3262 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue