Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/crypto/aes/arch/arm aesarmv8: Tweak comment style.



details:   https://anonhg.NetBSD.org/src-all/rev/4cdabbead538
branches:  trunk
changeset: 938479:4cdabbead538
user:      Taylor R Campbell <riastradh%NetBSD.org@localhost>
date:      Tue Sep 08 23:19:28 2020 +0000

description:
aesarmv8: Tweak comment style.

No functional change intended.

diffstat:

 sys/crypto/aes/arch/arm/aes_armv8_64.S |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 255a1946cd47 -r 4cdabbead538 sys/crypto/aes/arch/arm/aes_armv8_64.S
--- a/sys/crypto/aes/arch/arm/aes_armv8_64.S    Tue Sep 08 23:18:37 2020 +0000
+++ b/sys/crypto/aes/arch/arm/aes_armv8_64.S    Tue Sep 08 23:19:28 2020 +0000
@@ -614,8 +614,7 @@
        eor     v2.16b, v2.16b, v26.16b
        eor     v1.16b, v1.16b, v25.16b
        subs    x10, x10, #0x80         /* count down nbytes */
-                                       /* store plaintext blocks */
-       sub     x2, x2, #0x20
+       sub     x2, x2, #0x20           /* store plaintext blocks */
        st1     {v6.16b-v7.16b}, [x2]
        sub     x2, x2, #0x40
        st1     {v2.16b-v5.16b}, [x2]
@@ -748,13 +747,13 @@
        mov     x10, x3                 /* x10 := nbytes */
        ld1     {v31.16b}, [x4]         /* q31 := tweak */
        _ALIGN_TEXT
-1:     ld1     {v0.16b}, [x1], #0x10           /* q0 := ctxt */
+1:     ld1     {v0.16b}, [x1], #0x10   /* q0 := ctxt */
        mov     x0, x9                  /* x0 := deckey */
        mov     x3, x5                  /* x3 := nrounds */
        eor     v0.16b, v0.16b, v31.16b /* q0 := ctxt ^ tweak */
        bl      aesarmv8_dec1           /* q0 := AES(...); trash x0/x3/q16 */
        eor     v0.16b, v0.16b, v31.16b /* q0 := AES(ctxt ^ tweak) ^ tweak */
-       st1     {v0.16b}, [x2], #0x10           /* store plaintext block */
+       st1     {v0.16b}, [x2], #0x10   /* store plaintext block */
        bl      aesarmv8_xts_mulx       /* q31 *= x; trash x0/q0/q1 */
        subs    x10, x10, #0x10         /* count down nbytes */
        b.ne    1b                      /* repeat if more blocks */
@@ -896,7 +895,7 @@
        mov     x9, x0                  /* x9 := enckey */
        mov     x5, x3                  /* x5 := &auth (enc1 trashes x3) */
        _ALIGN_TEXT
-1:     ld1     {v1.16b}, [x1], #0x10           /* q1 := plaintext block */
+1:     ld1     {v1.16b}, [x1], #0x10   /* q1 := plaintext block */
        mov     x0, x9                  /* x0 := enckey */
        mov     x3, x4                  /* x3 := nrounds */
        eor     v0.16b, v0.16b, v1.16b  /* q0 := auth ^ ptxt */
@@ -930,7 +929,7 @@
        mov     x10, x3                 /* x10 := nbytes */
        rev32   v2.16b, v2.16b          /* q2 := ctr (host-endian) */
        _ALIGN_TEXT
-1:     ld1     {v3.16b}, [x1], #0x10           /* q3 := plaintext block */
+1:     ld1     {v3.16b}, [x1], #0x10   /* q3 := plaintext block */
        add     v2.4s, v2.4s, v5.4s     /* increment ctr (32-bit) */
        mov     x0, x9                  /* x0 := enckey */
        mov     x3, x5                  /* x3 := nrounds */
@@ -940,7 +939,7 @@
                                         * trash x0/x3/q16 */
        eor     v3.16b, v1.16b, v3.16b  /* q3 := ciphertext block */
        subs    x10, x10, #0x10         /* count down bytes */
-       st1     {v3.16b}, [x2], #0x10           /* store ciphertext block */
+       st1     {v3.16b}, [x2], #0x10   /* store ciphertext block */
        b.ne    1b                      /* repeat if more blocks */
        rev32   v2.16b, v2.16b          /* q2 := ctr (big-endian) */
        mov     v1.16b, v2.16b          /* store updated auth/ctr */



Home | Main Index | Thread Index | Old Index