Documentation
¶
Index ¶
- func GerenateSM2Key(pwd []byte) (private, public []byte, err error)
- func PrivateKeyDecrypt(secretText []byte, privateKey []byte, pwd []byte) ([]byte, error)
- func PublicKeyEncrypt(originalText []byte, publicKey []byte) ([]byte, error)
- func Sign(originalText []byte, privateKey []byte, pwd []byte) []byte
- func Verify(secretText, sign, publicKey []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyDecrypt ¶
PrivateKeyDecrypt 私钥解密
func PublicKeyEncrypt ¶
PublicKeyEncrypt 公钥加密 originalText 加密原文 publicKey 公钥 return 密文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.