mirror of https://github.com/gtank/ristretto255
all: fix typos
This commit is contained in:
parent
71368c02ff
commit
09d9129779
|
@ -337,7 +337,7 @@ func BenchmarkScalarMult(b *testing.B) {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// // Test vector generated by instrumenting x/crypto/ed25519 GenerateKey(). These
|
// // 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.
|
// // need to be reversed before use with big.Int.
|
||||||
// var genKeyTest = struct {
|
// var genKeyTest = struct {
|
||||||
// seed, expanded, public string
|
// seed, expanded, public string
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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
|
package group
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -8,7 +8,7 @@ package radix51
|
||||||
|
|
||||||
import "unsafe"
|
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) {
|
func madd64(lo, hi, a, b uint64) (ol uint64, oh uint64) {
|
||||||
t1 := (a>>32)*(b&0xFFFFFFFF) + ((a & 0xFFFFFFFF) * (b & 0xFFFFFFFF) >> 32)
|
t1 := (a>>32)*(b&0xFFFFFFFF) + ((a & 0xFFFFFFFF) * (b & 0xFFFFFFFF) >> 32)
|
||||||
t2 := (a&0xFFFFFFFF)*(b>>32) + (t1 & 0xFFFFFFFF)
|
t2 := (a&0xFFFFFFFF)*(b>>32) + (t1 & 0xFFFFFFFF)
|
||||||
|
|
Loading…
Reference in New Issue