Documentation ¶
Index ¶
- type TLSClient
- type TLSServer
- func (t *TLSServer) Decrypt(cipherbytes []byte) (plainbytes []byte, err error)
- func (t *TLSServer) Encrypt(plainbytes []byte) (cipherbytes []byte, err error)
- func (t *TLSServer) GetPrivateKey() string
- func (t *TLSServer) GetPublicKey() string
- func (t *TLSServer) GetSecret() string
- func (t *TLSServer) NegotiateVerify(hash string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSClient ¶
type TLSClient struct {
// contains filtered or unexported fields
}
TLSClient is a client for TLS.
func (*TLSClient) GetPublicKey ¶
GetPublicKey returns the public key.
func (*TLSClient) NegotiateGenerate ¶
NegotiateGenerate generates a secret and encrypts it with the public key.
The secret is used to encrypt the data. The hash is used to negotiate the secret.
type TLSServer ¶
type TLSServer struct {
// contains filtered or unexported fields
}
TLSServer is a server for TLS.
func (*TLSServer) GetPrivateKey ¶
GetPrivateKey returns the private key.
func (*TLSServer) GetPublicKey ¶
GetPublicKey returns the public key.
Click to show internal directories.
Click to hide internal directories.