Documentation ¶
Index ¶
- Variables
- func Decrypt(cipherText []byte) ([]byte, error)
- func DecryptByPrivateKey(cryptText, key []byte) (plainText []byte, err error)
- func Encrypt(plainText []byte) []byte
- func EncryptByDefaultPublicKey(plainText []byte) (cryptText []byte, err error)
- func EncryptByPublicKey(plainText, key []byte) (cryptText []byte, err error)
- func GetRsaKey() (error, []byte, []byte)
- func LoadPrivKey(filename string) (err error)
- func LoadPubKey(filename string) (err error)
- func NewSignTransport(t http.RoundTripper) http.RoundTripper
- func VerifyHTTPRequest(req *http.Request) (err error)
- type SignTransport
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{ Transport: NewSignTransport(http.DefaultTransport), }
DefaultClient ...
Functions ¶
func DecryptByPrivateKey ¶
func EncryptByPublicKey ¶
func NewSignTransport ¶
func NewSignTransport(t http.RoundTripper) http.RoundTripper
NewSignTransport ...
func VerifyHTTPRequest ¶
VerifyHTTPRequest ...
Types ¶
type SignTransport ¶
type SignTransport struct {
// contains filtered or unexported fields
}
SignTransport ...
Click to show internal directories.
Click to hide internal directories.