Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func GetRandomString(l int) string
- func InitTls()
- func Md5(s string) string
- func NewTlsClientConn(conn net.Conn) net.Conn
- func NewTlsServerConn(conn net.Conn) net.Conn
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) (error, []byte)
- type ClientHelloMsg
- type CurveID
- type SignatureScheme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS5Padding ¶
Completion when the length is insufficient
Types ¶
type ClientHelloMsg ¶ added in v0.21.0
type ClientHelloMsg struct {
// contains filtered or unexported fields
}
func (*ClientHelloMsg) GetServerName ¶ added in v0.21.0
func (m *ClientHelloMsg) GetServerName() string
func (*ClientHelloMsg) Unmarshal ¶ added in v0.21.0
func (m *ClientHelloMsg) Unmarshal(data []byte) bool
type SignatureScheme ¶ added in v0.21.0
type SignatureScheme uint16
Click to show internal directories.
Click to hide internal directories.