Add SM GM/T references

This commit is contained in:
Emman 2022-02-09 10:11:45 +08:00
parent 2574f2447c
commit 535b9ab928
4 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import (
)
// See https://www.imperialviolet.org/2010/12/04/ecc.html ([1]) for background.
// SM2 P256 parameters reference GB/T 32918.5-2017 part 5.
type p256Curve struct {
*elliptic.CurveParams

View File

@ -5,6 +5,7 @@ package sm2
// http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.182.4503&rep=rep1&type=pdf
// [SECG]: SECG, SEC1
// http://www.secg.org/sec1-v2.pdf
// [GM/T]: SM2 GB/T 32918.2-2016, GB/T 32918.4-2016
//
import (

View File

@ -1,5 +1,7 @@
package sm3
// [GM/T] SM3 GB/T 32905-2016
import (
"encoding/binary"
"errors"

View File

@ -1,5 +1,7 @@
package sm4
// [GM/T] SM4 GB/T 32907-2016
import (
"encoding/binary"
"math/bits"