Skip to content

Commit 4a771ec

Browse files
committed
GCM: add comments and fix whitespaces, no logic change
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
1 parent 48f8b81 commit 4a771ec

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/include/s390_aes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ static inline int s390_aes_gcm_hw(unsigned int function_code,
5959
unsigned int cv;
6060
ica_aes_vector_t tag;
6161
ica_aes_vector_t subkey_h;
62-
unsigned long long total_aad_length;
63-
unsigned long long total_input_length;
62+
unsigned long long total_aad_length; /* bit length */
63+
unsigned long long total_input_length; /* bit length */
6464
ica_aes_vector_t j0;
6565
ica_aes_key_len_256_t key;
6666
} parm_block;

src/include/s390_gcm.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ struct kma_ctx_t {
5151
uint32_t cv;
5252
ica_aes_vector_t tag;
5353
ica_aes_vector_t subkey_h;
54-
uint64_t total_aad_length;
55-
uint64_t total_input_length;
54+
uint64_t total_aad_length; /* bit length */
55+
uint64_t total_input_length; /* bit length */
5656
ica_aes_vector_t j0;
5757
ica_aes_key_len_256_t key;
5858
// Above this line: KMA parmblock, never change!
@@ -735,8 +735,8 @@ static inline int s390_aes_gcm_kma(const unsigned char *in_data,
735735
data_length = 0;
736736

737737
/* Actual lengths needed by KMA */
738-
ctx->total_aad_length += aad_length*8;
739-
ctx->total_input_length += data_length*8;
738+
ctx->total_aad_length += aad_length * 8;
739+
ctx->total_input_length += data_length * 8;
740740

741741
/* Call KMA */
742742
rc = s390_kma(hw_fc, ctx,

0 commit comments

Comments
 (0)