Skip to content

Commit

Permalink
Fix function signatures in aes-gcm-armv8 comments.
Browse files Browse the repository at this point in the history
Reviewed-by: Tom Cosgrove <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#21208)
  • Loading branch information
fisheryu-arm authored and paulidale committed Jun 16, 2023
1 parent ff934cf commit 6c0ecc2
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
72 changes: 36 additions & 36 deletions crypto/modes/asm/aes-gcm-armv8-unroll8_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@


#########################################################################################
# size_t unroll8_eor3_aes_gcm_enc_128_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# unsigned char ivec[16],
# u64 *Xi);
# size_t unroll8_eor3_aes_gcm_enc_128_kernel(const uint8_t * plaintext,
# uint64_t plaintext_length,
# uint8_t * ciphertext,
# uint64_t *Xi,
# unsigned char ivec[16],
# const void *key);
#
$code.=<<___;
.global unroll8_eor3_aes_gcm_enc_128_kernel
Expand Down Expand Up @@ -1348,12 +1348,12 @@
___

#########################################################################################
# size_t unroll8_eor3_aes_gcm_dec_128_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# u64 *Xi,
# unsigned char ivec[16],
# const void *key);
# size_t unroll8_eor3_aes_gcm_dec_128_kernel(const uint8_t * ciphertext,
# uint64_t plaintext_length,
# uint8_t * plaintext,
# uint64_t *Xi,
# unsigned char ivec[16],
# const void *key);
#
$code.=<<___;
.global unroll8_eor3_aes_gcm_dec_128_kernel
Expand Down Expand Up @@ -2502,12 +2502,12 @@
my $rk4v="v27";

#########################################################################################
# size_t unroll8_eor3_aes_gcm_enc_192_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# unsigned char ivec[16],
# u64 *Xi);
# size_t unroll8_eor3_aes_gcm_enc_192_kernel(const uint8_t * plaintext,
# uint64_t plaintext_length,
# uint8_t * ciphertext,
# uint64_t *Xi,
# unsigned char ivec[16],
# const void *key);
#
$code.=<<___;
.global unroll8_eor3_aes_gcm_enc_192_kernel
Expand Down Expand Up @@ -3664,12 +3664,12 @@
___

#########################################################################################
# size_t unroll8_eor3_aes_gcm_dec_192_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# unsigned char ivec[16],
# u64 *Xi);
# size_t unroll8_eor3_aes_gcm_dec_192_kernel(const uint8_t * ciphertext,
# uint64_t plaintext_length,
# uint8_t * plaintext,
# uint64_t *Xi,
# unsigned char ivec[16],
# const void *key);
#
$code.=<<___;
.global unroll8_eor3_aes_gcm_dec_192_kernel
Expand Down Expand Up @@ -4879,12 +4879,12 @@
my $rk3q1="v26.1q";
my $rk4v="v27";
#########################################################################################
# size_t unroll8_eor3_aes_gcm_enc_256_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# unsigned char ivec[16],
# u64 *Xi);
# size_t unroll8_eor3_aes_gcm_enc_256_kernel(const uint8_t * plaintext,
# uint64_t plaintext_length,
# uint8_t * ciphertext,
# uint64_t *Xi,
# unsigned char ivec[16],
# const void *key);
#
$code.=<<___;
.global unroll8_eor3_aes_gcm_enc_256_kernel
Expand Down Expand Up @@ -6110,12 +6110,12 @@

{
#########################################################################################
# size_t unroll8_eor3_aes_gcm_dec_256_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# unsigned char ivec[16],
# u64 *Xi);
# size_t unroll8_eor3_aes_gcm_dec_256_kernel(const uint8_t * ciphertext,
# uint64_t plaintext_length,
# uint8_t * plaintext,
# uint64_t *Xi,
# unsigned char ivec[16],
# const void *key);
#
$code.=<<___;
.global unroll8_eor3_aes_gcm_dec_256_kernel
Expand Down
60 changes: 30 additions & 30 deletions crypto/modes/asm/aes-gcm-armv8_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@
___

#########################################################################################
# size_t aes_gcm_enc_128_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# size_t aes_gcm_enc_128_kernel(const uint8_t * plaintext,
# uint64_t plaintext_length,
# uint8_t * ciphertext,
# uint64_t *Xi,
# unsigned char ivec[16],
# u64 *Xi);
# const void *key);
#
$code.=<<___;
.global aes_gcm_enc_128_kernel
Expand Down Expand Up @@ -1131,12 +1131,12 @@
___

#########################################################################################
# size_t aes_gcm_dec_128_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# size_t aes_gcm_dec_128_kernel(const uint8_t * ciphertext,
# uint64_t plaintext_length,
# uint8_t * plaintext,
# uint64_t *Xi,
# unsigned char ivec[16],
# u64 *Xi);
# const void *key);
#
$code.=<<___;
.global aes_gcm_dec_128_kernel
Expand Down Expand Up @@ -2089,12 +2089,12 @@
my $rk4d="d22";

#########################################################################################
# size_t aes_gcm_enc_192_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# size_t aes_gcm_enc_192_kernel(const uint8_t * plaintext,
# uint64_t plaintext_length,
# uint8_t * ciphertext,
# uint64_t *Xi,
# unsigned char ivec[16],
# u64 *Xi);
# const void *key);
#
$code.=<<___;
.global aes_gcm_enc_192_kernel
Expand Down Expand Up @@ -3026,12 +3026,12 @@
___

#########################################################################################
# size_t aes_gcm_dec_192_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# size_t aes_gcm_dec_192_kernel(const uint8_t * ciphertext,
# uint64_t plaintext_length,
# uint8_t * plaintext,
# uint64_t *Xi,
# unsigned char ivec[16],
# u64 *Xi);
# const void *key);
#
$code.=<<___;
.global aes_gcm_dec_192_kernel
Expand Down Expand Up @@ -4034,12 +4034,12 @@
my $rk4d="d22";

#########################################################################################
# size_t aes_gcm_enc_256_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# size_t aes_gcm_enc_256_kernel(const uint8_t * plaintext,
# uint64_t plaintext_length,
# uint8_t * ciphertext,
# uint64_t *Xi,
# unsigned char ivec[16],
# u64 *Xi);
# const void *key);
#
$code.=<<___;
.global aes_gcm_enc_256_kernel
Expand Down Expand Up @@ -5019,12 +5019,12 @@
my $t9="v6";
my $t9d="d6";
#########################################################################################
# size_t aes_gcm_dec_256_kernel(const unsigned char *in,
# size_t len,
# unsigned char *out,
# const void *key,
# size_t aes_gcm_dec_256_kernel(const uint8_t * ciphertext,
# uint64_t plaintext_length,
# uint8_t * plaintext,
# uint64_t *Xi,
# unsigned char ivec[16],
# u64 *Xi);
# const void *key);
#
$code.=<<___;
.global aes_gcm_dec_256_kernel
Expand Down

0 comments on commit 6c0ecc2

Please sign in to comment.