Documentation
¶
Overview ¶
Package pakekey binds croc's peer PAKE exchanges to their participants, session, purpose, and exact wire transcript.
Index ¶
Constants ¶
const ( // ProtocolVersion is the fail-closed croc peer PAKE protocol version. ProtocolVersion = 2 // SaltSize is the required peer key-schedule salt size. SaltSize = 32 PurposeTransfer = "peer-transfer" PurposeLocalProbe = "local-ip-probe" PurposeSSH = "peer-ssh" )
Variables ¶
This section is empty.
Functions ¶
func Identities ¶
Identities returns the ordered, implicit participant identities for a croc PAKE exchange. Party A is always the receiver and party B is the sender.
Types ¶
type Context ¶
type Context struct {
Purpose string
Room string
Curve string
Initiator []byte
Responder []byte
Salt []byte
}
Context contains the public session values authenticated by the channel key schedule. Initiator is party A's initial PAKE value and Responder is party B's response.