mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
Add SM GM/T references
This commit is contained in:
parent
2574f2447c
commit
535b9ab928
@ -10,6 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// See https://www.imperialviolet.org/2010/12/04/ecc.html ([1]) for background.
|
// 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 {
|
type p256Curve struct {
|
||||||
*elliptic.CurveParams
|
*elliptic.CurveParams
|
||||||
|
@ -5,6 +5,7 @@ package sm2
|
|||||||
// http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.182.4503&rep=rep1&type=pdf
|
// http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.182.4503&rep=rep1&type=pdf
|
||||||
// [SECG]: SECG, SEC1
|
// [SECG]: SECG, SEC1
|
||||||
// http://www.secg.org/sec1-v2.pdf
|
// http://www.secg.org/sec1-v2.pdf
|
||||||
|
// [GM/T]: SM2 GB/T 32918.2-2016, GB/T 32918.4-2016
|
||||||
//
|
//
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package sm3
|
package sm3
|
||||||
|
|
||||||
|
// [GM/T] SM3 GB/T 32905-2016
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package sm4
|
package sm4
|
||||||
|
|
||||||
|
// [GM/T] SM4 GB/T 32907-2016
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"math/bits"
|
"math/bits"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user