Documentation
¶
Overview ¶
provides connection encryption
Index ¶
Constants ¶
View Source
const ( // fixed key size in byte KeySize = 32 // rounds of iteration for pbkdf2 KeyIteration = 4096 )
Variables ¶
View Source
var (
ErrInvalidPassword = errors.New("invalid password")
)
Functions ¶
func ReceiveHandshake ¶
Types ¶
type EncryptedConnection ¶
type EncryptedConnection struct {
// contains filtered or unexported fields
}
func NewEncryptedConnection ¶
func NewEncryptedConnection(conn net.Conn, password []byte) *EncryptedConnection
func (*EncryptedConnection) Close ¶
func (c *EncryptedConnection) Close() error
Click to show internal directories.
Click to hide internal directories.