package edwards25519
import (
- "crypto/ed25519/internal/edwards25519/field"
+ "crypto/internal/edwards25519/field"
"errors"
)
// (*field.Element).SetBytes docs) and
// 2) the ones where the x-coordinate is zero and the sign bit is set.
//
- // This is consistent with crypto/ed25519/internal/edwards25519. Read more
- // at https://hdevalence.ca/blog/2020-10-04-its-25519am, specifically the
- // "Canonical A, R" section.
+ // Read more at https://hdevalence.ca/blog/2020-10-04-its-25519am,
+ // specifically the "Canonical A, R" section.
y, err := new(field.Element).SetBytes(x)
if err != nil {
//go:generate go run . -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field
func main() {
- Package("crypto/ed25519/internal/edwards25519/field")
+ Package("crypto/internal/edwards25519/field")
ConstraintExpr("amd64,gc,!purego")
feMul()
feSquare()
< crypto/internal/subtle
< crypto/internal/nistec/fiat
< crypto/internal/nistec
- < crypto/ed25519/internal/edwards25519/field, golang.org/x/crypto/curve25519/internal/field
- < crypto/ed25519/internal/edwards25519
+ < crypto/internal/edwards25519/field, golang.org/x/crypto/curve25519/internal/field
+ < crypto/internal/edwards25519
< crypto/cipher
< crypto/internal/boring
< crypto/boring