Skip to content

Commit 6c87785

Browse files
committed
fixed
1 parent e6ffd91 commit 6c87785

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

elliptic/ed521/ed521_curves.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
var ed521 *Ed521Curve
88

99
func initAll() {
10-
initE521()
10+
initED521()
1111
}
1212

13-
func initE521() {
13+
func initED521() {
1414
ed521 = &Ed521Curve{
1515
Name: "Ed521",
1616
P: bigFromDec("6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151"),

elliptic/ed521/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"crypto/elliptic"
66
)
77

8-
// E521
8+
// Ed521 curve
99
type Ed521Curve struct {
1010
Name string
1111
P *big.Int
@@ -367,7 +367,7 @@ func panicIfNotOnCurve(curve elliptic.Curve, x, y *big.Int) {
367367
}
368368

369369
if !curve.IsOnCurve(x, y) {
370-
panic("go-cryptobin/e521: attempted operation on invalid point")
370+
panic("go-cryptobin/ed521: attempted operation on invalid point")
371371
}
372372
}
373373

0 commit comments

Comments
 (0)