sm2ec: error message

This commit is contained in:
Sun Yimin 2022-08-15 15:21:42 +08:00 committed by GitHub
parent f254673618
commit bed0b64629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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++ {

View File

@ -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++ {