From 09d91297791d98f1954820efafa06f9f465b6ec4 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Sun, 31 Mar 2019 04:29:01 +0300 Subject: [PATCH] all: fix typos --- ed25519_test.go | 2 +- internal/group/ge.go | 2 +- internal/radix51/mul_compat.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ed25519_test.go b/ed25519_test.go index 26026c9..88ed88a 100644 --- a/ed25519_test.go +++ b/ed25519_test.go @@ -337,7 +337,7 @@ func BenchmarkScalarMult(b *testing.B) { // } // // Test vector generated by instrumenting x/crypto/ed25519 GenerateKey(). These -// // are raw values. The edwards code interprets them as little-endian, so they +// // are raw values. The Edwards code interprets them as little-endian, so they // // need to be reversed before use with big.Int. // var genKeyTest = struct { // seed, expanded, public string diff --git a/internal/group/ge.go b/internal/group/ge.go index 91fb65f..1edbad1 100644 --- a/internal/group/ge.go +++ b/internal/group/ge.go @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package group mplements group logic for the Ed25519 curve. +// Package group implements group logic for the Ed25519 curve. package group import ( diff --git a/internal/radix51/mul_compat.go b/internal/radix51/mul_compat.go index 54427a9..3ffb93b 100644 --- a/internal/radix51/mul_compat.go +++ b/internal/radix51/mul_compat.go @@ -8,7 +8,7 @@ package radix51 import "unsafe" -// madd64 multiples two 64-bit numbers and adds them to a split 128-bit accumulator. +// madd64 multiplies two 64-bit numbers and adds them to a split 128-bit accumulator. func madd64(lo, hi, a, b uint64) (ol uint64, oh uint64) { t1 := (a>>32)*(b&0xFFFFFFFF) + ((a & 0xFFFFFFFF) * (b & 0xFFFFFFFF) >> 32) t2 := (a&0xFFFFFFFF)*(b>>32) + (t1 & 0xFFFFFFFF)