Documentation ¶
Index ¶
- func Decrypt(privateKey *ecdsa.PrivateKey, ctB64 string) ([]byte, error)
- func Encrypt(publicKey *ecdsa.PublicKey, pt []byte) (string, error)
- func GenerateKey() (privateKeyStr string, publicKeyStr string, err error)
- func ParsePrivateKey(data string) (privateKey *ecdsa.PrivateKey, err error)
- func ParsePublicKey(data string) (publicKey *ecdsa.PublicKey, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(privateKey *ecdsa.PrivateKey, ctB64 string) ([]byte, error)
Decrypt ECC解密
func GenerateKey ¶
GenerateKey 生成ECC公钥/秘钥对
func ParsePrivateKey ¶
func ParsePrivateKey(data string) (privateKey *ecdsa.PrivateKey, err error)
ParsePrivateKey 解码秘钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.