forked from External/grumble
pkg/cryptstate: add support for XSalsa20-Poly1305 crypto mode.
This commit is contained in:
parent
cd363d197e
commit
edf98fa75f
4 changed files with 179 additions and 24 deletions
|
|
@ -504,7 +504,7 @@ func (server *Server) handleAuthenticate(client *Client, msg *Message) {
|
|||
}
|
||||
|
||||
// Setup the cryptstate for the client.
|
||||
err = client.crypt.GenerateKey()
|
||||
err = client.crypt.GenerateKey(client.CryptoMode)
|
||||
if err != nil {
|
||||
client.Panicf("%v", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue