Skip to content

Commit c7107a7

Browse files
committed
Minor simplification.
1 parent 3621141 commit c7107a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/java.base/share/classes/com/sun/crypto/provider/AES_Crypt.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -935,10 +935,8 @@ void init(boolean decrypting, String algorithm, byte[] key)
935935
prevKey = key.clone();
936936
}
937937

938-
if (decrypting) {
939-
if (sessionKd == null) {
940-
sessionKd = genInvRoundKeys(sessionKe, rounds);
941-
}
938+
if (decrypting && (sessionKd == null)) {
939+
sessionKd = genInvRoundKeys(sessionKe, rounds);
942940
}
943941
}
944942

0 commit comments

Comments
 (0)