Documentation ¶
Index ¶
- type Server
- func (t *Server) Decrypt(cipherbytes []byte) (plainbytes []byte, err error)
- func (t *Server) Encrypt(plainbytes []byte) (cipherbytes []byte, err error)
- func (t *Server) GetPrivateKey() string
- func (t *Server) GetPublicKey() string
- func (t *Server) GetSecret() []byte
- func (t *Server) NegotiateVerify(hash string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a server for TLS.
func (*Server) GetPrivateKey ¶
GetPrivateKey returns the private key.
func (*Server) GetPublicKey ¶
GetPublicKey returns the public key.
Click to show internal directories.
Click to hide internal directories.