diff --git a/internal/sm2ec/generate.go b/internal/sm2ec/generate.go index 5276125..031329d 100644 --- a/internal/sm2ec/generate.go +++ b/internal/sm2ec/generate.go @@ -462,7 +462,7 @@ type {{.p}}Table [15]*{{.P}}Point // constant time by iterating over every entry of the table. n must be in [0, 15]. func (table *{{.p}}Table) Select(p *{{.P}}Point, n uint8) { if n >= 16 { - panic("nistec: internal error: {{.p}}Table called with out-of-bounds value") + panic("sm2ec: internal error: {{.p}}Table called with out-of-bounds value") } p.Set(New{{.P}}Point()) for i := uint8(1); i < 16; i++ { diff --git a/internal/sm2ec/sm2p256.go b/internal/sm2ec/sm2p256.go index e6e9f0e..e54b166 100644 --- a/internal/sm2ec/sm2p256.go +++ b/internal/sm2ec/sm2p256.go @@ -319,7 +319,7 @@ type sm2p256Table [15]*SM2P256Point // constant time by iterating over every entry of the table. n must be in [0, 15]. func (table *sm2p256Table) Select(p *SM2P256Point, n uint8) { if n >= 16 { - panic("nistec: internal error: sm2p256Table called with out-of-bounds value") + panic("sm2ec: internal error: sm2p256Table called with out-of-bounds value") } p.Set(NewSM2P256Point()) for i := uint8(1); i < 16; i++ {