Documentation ¶
Index ¶
- Constants
- type HandShakeCipher
- type State
- type UKey2Handshake
- func (u *UKey2Handshake) GetHandshakeState() (State, error)
- func (u *UKey2Handshake) GetNextHandshakeMessage() ([]byte, error)
- func (u *UKey2Handshake) GetVerificationString(byteLength int) ([]byte, error)
- func (u *UKey2Handshake) ParseHandshakeMessage(message []byte) (bool, []byte, error)
- func (u *UKey2Handshake) ToConnectionContext() (d2d.D2DConnectionContext, error)
- func (u *UKey2Handshake) VerifyHandshake() error
Constants ¶
View Source
const ( CLIENT_START handshakeState = iota CLIENT_WAITING_FOR_SERVER_INIT CLIENT_AFTER_SERVER_INIT // Responder/server state SERVER_START SERVER_AFTER_CLIENT_INIT SERVER_WAITING_FOR_CLIENT_FINISHED // Common completion state HANDSHAKE_VERIFICATION_NEEDED HANDSHAKE_VERIFICATION_IN_PROGRESS HANDSHAKE_FINISHED HANDSHAKE_ALREADY_USED HANDSHAKE_ERROR )
View Source
const ( CLIENT handshakeRole = iota SERVER )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UKey2Handshake ¶
type UKey2Handshake struct {
// contains filtered or unexported fields
}
func ForInitiator ¶
func ForInitiator(cipher HandShakeCipher) *UKey2Handshake
func ForResponder ¶
func ForResponder(cipher HandShakeCipher) *UKey2Handshake
func (*UKey2Handshake) GetHandshakeState ¶
func (u *UKey2Handshake) GetHandshakeState() (State, error)
func (*UKey2Handshake) GetNextHandshakeMessage ¶
func (u *UKey2Handshake) GetNextHandshakeMessage() ([]byte, error)
func (*UKey2Handshake) GetVerificationString ¶
func (u *UKey2Handshake) GetVerificationString(byteLength int) ([]byte, error)
func (*UKey2Handshake) ParseHandshakeMessage ¶
func (u *UKey2Handshake) ParseHandshakeMessage(message []byte) (bool, []byte, error)
func (*UKey2Handshake) ToConnectionContext ¶
func (u *UKey2Handshake) ToConnectionContext() (d2d.D2DConnectionContext, error)
func (*UKey2Handshake) VerifyHandshake ¶
func (u *UKey2Handshake) VerifyHandshake() error
Click to show internal directories.
Click to hide internal directories.