Documentation ¶
Index ¶
- Variables
- func InitTable() *[43][32 * 8]uint64
- func MarshalSig(x, y []byte) []byte
- func REDC64(in *[4]uint64)
- func Sign(dgst []byte, reader io.Reader, key []byte) ([]byte, uint8, error)
- func Sm2() elliptic.Curve
- func Unmarshal(in []byte) (x []byte, y []byte)
- func VerifySignature(sig, dgst []byte, X []byte, Y []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //RR = R * R mod P RR = [4]uint64{0x0000000200000003, 0x00000002ffffffff, 0x0000000100000001, 0x400000002} //R = R mod P R = [4]uint64{0x0000000000000001, 0x00000000ffffffff, 0x0000000000000000, 0x100000000} //RRN = R * R mod N RRN = [4]uint64{0x901192af7c114f20, 0x3464504ade6fa2fa, 0x620fc84c3affe0d4, 0x1eb5e412a22b3d3b} )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.