]> Cypherpunks repositories - gostls13.git/commitdiff
crypto: fix typos in the comments
authorAlexander F Rødseth <alexander.rodseth@appeartv.com>
Mon, 28 May 2018 10:40:54 +0000 (10:40 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 28 May 2018 17:09:11 +0000 (17:09 +0000)
* Fix typos in the comments in the assembly code for the crypto package.

Change-Id: Iac146a7d8bee4a680a8d4d3af533fbc1b259482d
GitHub-Last-Rev: 65090a38956df4c14bf55df4881c76e8c3d32447
GitHub-Pull-Request: golang/go#25606
Reviewed-on: https://go-review.googlesource.com/114803
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/elliptic/p256_asm_s390x.s
src/crypto/sha1/sha1block_amd64.s
src/crypto/sha256/sha256block_amd64.s

index d0e6d09e2e32628290f56a95cb41ffdbee3afc54..8a17e81062fc5619dc9de040d6f46359534ea171 100644 (file)
@@ -991,7 +991,7 @@ TEXT ·p256OrdMul(SB), NOSPLIT, $0
  *                                                                *Mi obra de arte de siglo XXI @vpaprots
  *
  *
- * First group is special, doesnt get the two inputs:
+ * First group is special, doesn't get the two inputs:
  *                                             +--------+--------+<-+
  *                                     +-------|  ADD2  |  ADD1  |--|-----+
  *                                     |       +--------+--------+  |     |
index a0032c4544095ef0e1d10f9d84a3f9eb93d8be87..135f113898c43ac35ab5b592f3b9a6f9c712dc27 100644 (file)
@@ -395,7 +395,7 @@ end:
        PRECALC_32_79(Y13,Y14,Y15,Y5,Y12,0x60,0x240) \
        PRECALC_32_79(Y12,Y13,Y14,Y3,Y8,0x60,0x260)
 
-// Macros calculating individual rounds have general forn
+// Macros calculating individual rounds have general form
 // CALC_ROUND_PRE + PRECALC_ROUND + CALC_ROUND_POST
 // CALC_ROUND_{PRE,POST} macros follow
 
@@ -413,7 +413,7 @@ end:
        LEAL (REG_E)(R12*1), REG_E     // E += A >>> 5
 
 
-// Registers are cycleickly rotated DX -> AX -> DI -> SI -> BX -> CX
+// Registers are cyclically rotated DX -> AX -> DI -> SI -> BX -> CX
 #define CALC_0 \
        MOVL SI, BX \ // Precalculating first round
        RORXL $2, SI, SI \
index f30f4829a6c1b0bb459fb50f184a4ddc9da4319a..f533f642607814cfced65de99610b692835a95c3 100644 (file)
@@ -755,7 +755,7 @@ avx2_loop1: // for w0 - w47
        JB   avx2_loop1
 
 avx2_loop2:
-       // w48 - w63 processed with no scheduliung (last 16 rounds)
+       // w48 - w63 processed with no scheduling (last 16 rounds)
        VPADDD  0*32(TBL)(SRND*1), XDWORD0, XFER
        VMOVDQU XFER, (_XFER + 0*32)(SP)(SRND*1)
        DO_ROUND_N_0(_XFER + 0*32, a, b, c, d, e, f, g, h, h)