mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-28 05:06:18 +08:00
sm2ec: error message
This commit is contained in:
parent
f254673618
commit
bed0b64629
@ -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++ {
|
||||
|
@ -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++ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user