mirror of https://github.com/gtank/ristretto255
17 lines
390 B
Go
17 lines
390 B
Go
// Copyright (c) 2017 George Tankersley. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build amd64,!noasm
|
|
|
|
package radix51
|
|
|
|
// Square sets v = x * x and returns v.
|
|
func (v *FieldElement) Square(x *FieldElement) *FieldElement {
|
|
feSquare(v, x)
|
|
return v
|
|
}
|
|
|
|
//go:noescape
|
|
func feSquare(out, x *FieldElement)
|