Documentation ¶
Overview ¶
Package conn makes it possible to hide the structure of the true message by encrypting and adding random bytes.
NETWORK MESSAGE FORMAT E( LEM || LV || H(LEM||LV) || H(EM||V) ) || EM || V where LEM = L(EM) LV = L(V) EM = E(M) where E - encrypt (cipher-key) H - hmac (auth-key) L - length M - message bytes V - void bytes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IConn ¶
type ISettings ¶
type ISettings interface { net_message.ISettings // for subsequent inheritance on multiple connections SetNetworkKey(string) GetMessageSizeBytes() uint64 GetLimitVoidSize() uint64 GetWaitReadDeadline() time.Duration GetReadDeadline() time.Duration GetWriteDeadline() time.Duration }
func NewSettings ¶
Click to show internal directories.
Click to hide internal directories.