Documentation ¶
Index ¶
- Constants
- func Deserialize(sigStr []byte) (*big.Int, *big.Int, error)
- func IsLowS(s *big.Int) bool
- func Serialize(r, s *big.Int) []byte
- func SerializePrivateKey(p *sm2.PrivateKey) []byte
- func SerializePublicKey(p *sm2.PublicKey) []byte
- func ToLowS(k *sm2.PublicKey, s *big.Int) *big.Int
- type Driver
- type PrivKeySM2
- type PubKeySM2
- type SM2Signature
- type SignatureS
- type SignatureSM2
Constants ¶
View Source
const ( SM2_RPIVATEKEY_LENGTH = 32 SM2_PUBLICKEY_LENGTH = 65 )
View Source
const ID = 3
View Source
const Name = "sm2"
Variables ¶
This section is empty.
Functions ¶
func SerializePrivateKey ¶
func SerializePrivateKey(p *sm2.PrivateKey) []byte
func SerializePublicKey ¶
Types ¶
type PrivKeySM2 ¶
type PrivKeySM2 [SM2_RPIVATEKEY_LENGTH]byte
func (PrivKeySM2) Bytes ¶
func (privKey PrivKeySM2) Bytes() []byte
func (PrivKeySM2) PubKey ¶
func (privKey PrivKeySM2) PubKey() crypto.PubKey
func (PrivKeySM2) String ¶
func (privKey PrivKeySM2) String() string
type PubKeySM2 ¶
type PubKeySM2 [SM2_PUBLICKEY_LENGTH]byte
type SM2Signature ¶
type SignatureS ¶
type SignatureSM2 ¶
type SignatureSM2 []byte
func (SignatureSM2) Bytes ¶
func (sig SignatureSM2) Bytes() []byte
func (SignatureSM2) IsZero ¶
func (sig SignatureSM2) IsZero() bool
func (SignatureSM2) String ¶
func (sig SignatureSM2) String() string
Click to show internal directories.
Click to hide internal directories.