github.com/emmansun/gmsm@v0.29.1/internal/sm2ec/sm2ec.go (about)

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