gmsm/internal/sm2ec/sm2ec.go

11 lines
533 B
Go
Raw Normal View History

2022-06-20 11:15:09 +08:00
// Package sm2ec implements the SM2 Prime elliptic curves.
//
// This package uses fiat-crypto or specialized assembly and Go code for its
// backend field arithmetic (not math/big) and exposes constant-time, heap
// allocation-free, byte slice-based safe APIs. Group operations use modern and
// safe complete addition formulas where possible. The point at infinity is
// handled and encoded according to SEC 1, Version 2.0, and invalid curve points
// can't be represented.
package sm2ec
//go:generate go run generate.go