]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/elliptic: fix some typos
authorchenjie <chenjie@chenjie.info>
Tue, 30 Mar 2021 07:23:53 +0000 (07:23 +0000)
committerBen Shi <powerman1st@163.com>
Tue, 30 Mar 2021 08:39:13 +0000 (08:39 +0000)
Change-Id: I1c2900d4e1c0b6108f13c4060d994d966f3e18f3
GitHub-Last-Rev: 3fde453686ab3fdeb77d2f73c09e4a679056adf3
GitHub-Pull-Request: golang/go#45295
Reviewed-on: https://go-review.googlesource.com/c/go/+/305773
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ben Shi <powerman1st@163.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/crypto/elliptic/p256.go
src/crypto/elliptic/p256_asm_ppc64le.s

index 3bb7bb70b697b50605f3ce49b92a7d949efc3306..b2b12c8f138bfeace215e47cc36cc2f3a5b33df6 100644 (file)
@@ -327,7 +327,7 @@ func p256ReduceDegree(out *[p256Limbs]uint32, tmp [17]uint64) {
        var tmp2 [18]uint32
        var carry, x, xMask uint32
 
-       // tmp contains 64-bit words with the same 29,28,29-bit positions as an
+       // tmp contains 64-bit words with the same 29,28,29-bit positions as a
        // field element. So the top of an element of tmp might overlap with
        // another element two positions down. The following loop eliminates
        // this overlap.
index 924e365c6c1a90a5d74c1ead5f086ad3653753ff..69e96e269694787649a9026a5edc240f8c58a2b8 100644 (file)
@@ -870,7 +870,7 @@ TEXT ·p256FromMont(SB), NOSPLIT, $0-48
  *                                                                *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  |--|-----+
  *                                     |       +--------+--------+  |     |