Skip to content

Commit 17d1ece

Browse files
authored
Fix comment character (#76)
1 parent 8ecb93e commit 17d1ece

File tree

1 file changed

+11
-11
lines changed
  • pqcrypto-internals/cfiles/keccak2x

1 file changed

+11
-11
lines changed

pqcrypto-internals/cfiles/keccak2x/feat.S

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ SOFTWARE.
2727
#if (__APPLE__ && __ARM_FEATURE_CRYPTO) || (__ARM_FEATURE_SHA3)
2828

2929
.macro round
30-
; Execute theta, but without xoring into the state yet.
31-
; Compute parities p[i] = a[i] ^ a[5+i] ^ ... ^ a[20+i].
30+
// Execute theta, but without xoring into the state yet.
31+
// Compute parities p[i] = a[i] ^ a[5+i] ^ ... ^ a[20+i].
3232
eor3.16b v25, v0, v5, v10
3333
eor3.16b v26, v1, v6, v11
3434
eor3.16b v27, v2, v7, v12
@@ -41,14 +41,14 @@ SOFTWARE.
4141
eor3.16b v28, v28, v18, v23
4242
eor3.16b v29, v29, v19, v24
4343

44-
rax1.2d v30, v29, v26 ; d[0] = rotl(p[1], 1) ^ p[4]
45-
rax1.2d v29, v27, v29 ; d[3] = rotl(p[4], 1) ^ p[2]
46-
rax1.2d v27, v25, v27 ; d[1] = rotl(p[2], 1) ^ p[0]
47-
rax1.2d v25, v28, v25 ; d[4] = rotl(p[0], 1) ^ p[3]
48-
rax1.2d v28, v26, v28 ; d[2] = rotl(p[3], 1) ^ p[1]
44+
rax1.2d v30, v29, v26 // d[0] = rotl(p[1], 1) ^ p[4]
45+
rax1.2d v29, v27, v29 // d[3] = rotl(p[4], 1) ^ p[2]
46+
rax1.2d v27, v25, v27 // d[1] = rotl(p[2], 1) ^ p[0]
47+
rax1.2d v25, v28, v25 // d[4] = rotl(p[0], 1) ^ p[3]
48+
rax1.2d v28, v26, v28 // d[2] = rotl(p[3], 1) ^ p[1]
4949

50-
; Xor parities from step theta into the state at the same time
51-
; as executing rho and pi.
50+
// Xor parities from step theta into the state at the same time
51+
// as executing rho and pi.
5252
eor.16b v0, v0, v30
5353
mov.16b v31, v1
5454
xar.2d v1, v6, v27, 20
@@ -76,7 +76,7 @@ SOFTWARE.
7676
xar.2d v7, v10, v30, 61
7777
xar.2d v10, v31, v27, 63
7878

79-
; Chi
79+
// Chi
8080
bcax.16b v25, v0, v2, v1
8181
bcax.16b v26, v1, v3, v2
8282
bcax.16b v2, v2, v4, v3
@@ -117,7 +117,7 @@ SOFTWARE.
117117
mov.16b v20, v25
118118
mov.16b v21, v26
119119

120-
; iota
120+
// iota
121121
ld1r {v25.2d}, [x1], #8
122122
eor.16b v0, v0, v25
123123
.endm

0 commit comments

Comments
 (0)