Documentation ¶
Index ¶
- func KDF(klen int, z []byte) ([]byte, error)
- func P256Sm2() elliptic.Curve
- func SM2Decrypt(cipher []byte, privkey *PrivateKey) ([]byte, error)
- func SM2Encrypt(msg []byte, pubkey *PublicKey) ([]byte, error)
- func SM2Verify(msg []byte, sig Signature, pubkey PublicKey, id []byte) (bool, error)
- func WNafReversed(wnaf []int8) []int8
- func ZA(pubkey PublicKey, id []byte) []byte
- type PrivateKey
- type PublicKey
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WNafReversed ¶
Types ¶
type PrivateKey ¶
PrivateKey SM2 private key
Click to show internal directories.
Click to hide internal directories.