Skip to content

Commit 30b5b53

Browse files
committed
Address review comments.
1 parent 3ece01c commit 30b5b53

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ class StubGenerator: public StubCodeGenerator {
28792879
// Inputs:
28802880
// c_rarg0 - source byte array address
28812881
// c_rarg1 - destination byte array address
2882-
// c_rarg2 - K (key) in little endian int array
2882+
// c_rarg2 - sessionKe (key) in little endian int array
28832883
//
28842884
address generate_aescrypt_encryptBlock() {
28852885
__ align(CodeEntryAlignment);
@@ -2912,7 +2912,7 @@ class StubGenerator: public StubCodeGenerator {
29122912
// Inputs:
29132913
// c_rarg0 - source byte array address
29142914
// c_rarg1 - destination byte array address
2915-
// c_rarg2 - K (key) in little endian int array
2915+
// c_rarg2 - sessionKd (key) in little endian int array
29162916
//
29172917
address generate_aescrypt_decryptBlock() {
29182918
assert(UseAES, "need AES cryptographic extension support");
@@ -2946,7 +2946,7 @@ class StubGenerator: public StubCodeGenerator {
29462946
// Inputs:
29472947
// c_rarg0 - source byte array address
29482948
// c_rarg1 - destination byte array address
2949-
// c_rarg2 - K (key) in little endian int array
2949+
// c_rarg2 - sessionKe (key) in little endian int array
29502950
// c_rarg3 - r vector byte array address
29512951
// c_rarg4 - input length
29522952
//
@@ -3051,7 +3051,7 @@ class StubGenerator: public StubCodeGenerator {
30513051
// Inputs:
30523052
// c_rarg0 - source byte array address
30533053
// c_rarg1 - destination byte array address
3054-
// c_rarg2 - K (key) in little endian int array
3054+
// c_rarg2 - sessionKd (key) in little endian int array
30553055
// c_rarg3 - r vector byte array address
30563056
// c_rarg4 - input length
30573057
//
@@ -3178,7 +3178,7 @@ class StubGenerator: public StubCodeGenerator {
31783178
// Inputs:
31793179
// c_rarg0 - source byte array address
31803180
// c_rarg1 - destination byte array address
3181-
// c_rarg2 - K (key) in little endian int array
3181+
// c_rarg2 - sessionKe (key) in little endian int array
31823182
// c_rarg3 - counter vector byte array address
31833183
// c_rarg4 - input length
31843184
// c_rarg5 - saved encryptedCounter start

src/hotspot/cpu/ppc/stubGenerator_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ class StubGenerator: public StubCodeGenerator {
29562956
// Arguments for generated stub:
29572957
// R3_ARG1 - source byte array address
29582958
// R4_ARG2 - destination byte array address
2959-
// R5_ARG3 - K (key) in little endian int array
2959+
// R5_ARG3 - sessionKe (key) in little endian int array
29602960
address generate_aescrypt_decryptBlock() {
29612961
assert(UseAES, "need AES instructions and misaligned SSE support");
29622962
StubId stub_id = StubId::stubgen_aescrypt_decryptBlock_id;

src/hotspot/cpu/riscv/stubGenerator_riscv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,7 +2463,7 @@ class StubGenerator: public StubCodeGenerator {
24632463
// Inputs:
24642464
// c_rarg0 - source byte array address
24652465
// c_rarg1 - destination byte array address
2466-
// c_rarg2 - K (key) in little endian int array
2466+
// c_rarg2 - sessionKe (key) in little endian int array
24672467
//
24682468
address generate_aescrypt_encryptBlock() {
24692469
assert(UseAESIntrinsics, "need AES instructions (Zvkned extension) support");
@@ -2542,7 +2542,7 @@ class StubGenerator: public StubCodeGenerator {
25422542
// Inputs:
25432543
// c_rarg0 - source byte array address
25442544
// c_rarg1 - destination byte array address
2545-
// c_rarg2 - K (key) in little endian int array
2545+
// c_rarg2 - sessionKe (key) in little endian int array
25462546
//
25472547
address generate_aescrypt_decryptBlock() {
25482548
assert(UseAESIntrinsics, "need AES instructions (Zvkned extension) support");

src/hotspot/cpu/x86/stubGenerator_x86_64_aes.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ address StubGenerator::generate_counterMode_VectorAESCrypt() {
480480
// Inputs:
481481
// c_rarg0 - source byte array address
482482
// c_rarg1 - destination byte array address
483-
// c_rarg2 - K (key) in little endian int array
483+
// c_rarg2 - sessionKe (key) in little endian int array
484484
// c_rarg3 - counter vector byte array address
485485
// Linux
486486
// c_rarg4 - input length
@@ -1063,7 +1063,7 @@ address StubGenerator::generate_cipherBlockChaining_decryptVectorAESCrypt() {
10631063
// Inputs:
10641064
// c_rarg0 - source byte array address
10651065
// c_rarg1 - destination byte array address
1066-
// c_rarg2 - K (key) in little endian int array
1066+
// c_rarg2 - sessionKe (key) in little endian int array
10671067
//
10681068
address StubGenerator::generate_aescrypt_encryptBlock() {
10691069
assert(UseAES, "need AES instructions and misaligned SSE support");
@@ -1158,7 +1158,7 @@ address StubGenerator::generate_aescrypt_encryptBlock() {
11581158
// Inputs:
11591159
// c_rarg0 - source byte array address
11601160
// c_rarg1 - destination byte array address
1161-
// c_rarg2 - K (key) in little endian int array
1161+
// c_rarg2 - sessionKd (key) in little endian int array
11621162
//
11631163
address StubGenerator::generate_aescrypt_decryptBlock() {
11641164
assert(UseAES, "need AES instructions and misaligned SSE support");
@@ -1255,7 +1255,7 @@ address StubGenerator::generate_aescrypt_decryptBlock() {
12551255
// Inputs:
12561256
// c_rarg0 - source byte array address
12571257
// c_rarg1 - destination byte array address
1258-
// c_rarg2 - K (key) in little endian int array
1258+
// c_rarg2 - sessionKe (key) in little endian int array
12591259
// c_rarg3 - r vector byte array address
12601260
// c_rarg4 - input length
12611261
//
@@ -1407,7 +1407,7 @@ address StubGenerator::generate_cipherBlockChaining_encryptAESCrypt() {
14071407
// Inputs:
14081408
// c_rarg0 - source byte array address
14091409
// c_rarg1 - destination byte array address
1410-
// c_rarg2 - K (key) in little endian int array
1410+
// c_rarg2 - sessionKd (key) in little endian int array
14111411
// c_rarg3 - r vector byte array address
14121412
// c_rarg4 - input length
14131413
//

src/hotspot/share/opto/library_call.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7453,7 +7453,7 @@ bool LibraryCallKit::inline_counterMode_AESCrypt(vmIntrinsics::ID id) {
74537453
Node* aescrypt_object = new CheckCastPPNode(control(), embeddedCipherObj, xtype);
74547454
aescrypt_object = _gvn.transform(aescrypt_object);
74557455
// we need to get the start of the aescrypt_object's expanded key array
7456-
Node* k_start = get_key_start_from_aescrypt_object(aescrypt_object);
7456+
Node* k_start = get_key_start_from_aescrypt_object(aescrypt_object, /* is_decrypt */ false);
74577457
if (k_start == nullptr) return false;
74587458
// similarly, get the start address of the r vector
74597459
Node* obj_counter = load_field_from_object(counterMode_object, "counter", "[B");
@@ -7492,7 +7492,7 @@ Node* LibraryCallKit::get_key_start_from_aescrypt_object(Node* aescrypt_object,
74927492
assert(objAESCryptKey != nullptr, "wrong version of com.sun.crypto.provider.AES_Crypt");
74937493
if (objAESCryptKey == nullptr) return (Node *) nullptr;
74947494

7495-
// now have the array, need to get the start address of the K array
7495+
// now have the array, need to get the start address of the selected key array
74967496
Node* k_start = array_element_address(objAESCryptKey, intcon(0), T_INT);
74977497
return k_start;
74987498
}
@@ -8628,7 +8628,7 @@ bool LibraryCallKit::inline_galoisCounterMode_AESCrypt() {
86288628
Node* aescrypt_object = new CheckCastPPNode(control(), embeddedCipherObj, xtype);
86298629
aescrypt_object = _gvn.transform(aescrypt_object);
86308630
// we need to get the start of the aescrypt_object's expanded key array
8631-
Node* k_start = get_key_start_from_aescrypt_object(aescrypt_object);
8631+
Node* k_start = get_key_start_from_aescrypt_object(aescrypt_object, /* is_decrypt */ false);
86328632
if (k_start == nullptr) return false;
86338633
// similarly, get the start address of the r vector
86348634
Node* cnt_start = array_element_address(counter, intcon(0), T_BYTE);

src/hotspot/share/opto/library_call.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class LibraryCallKit : public GraphKit {
338338
Node* inline_cipherBlockChaining_AESCrypt_predicate(bool decrypting);
339339
Node* inline_electronicCodeBook_AESCrypt_predicate(bool decrypting);
340340
Node* inline_counterMode_AESCrypt_predicate();
341-
Node* get_key_start_from_aescrypt_object(Node* aescrypt_object, bool is_decrypt = false);
341+
Node* get_key_start_from_aescrypt_object(Node* aescrypt_object, bool is_decrypt);
342342
bool inline_ghash_processBlocks();
343343
bool inline_chacha20Block();
344344
bool inline_kyberNtt();

0 commit comments

Comments
 (0)