Commit 1b34a57a authored by Jason A. Donenfeld's avatar Jason A. Donenfeld

vectorgen: use 32-byte psk

The noise specification mandates that preshared keys are 256-bits.
Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
parent 6a0d1cad
......@@ -68,7 +68,7 @@ func writeHandshake(out io.Writer, cs CipherSuite, h HandshakePattern, hasPSK, h
prologue = []byte("notsecret")
}
if hasPSK {
psk = []byte("verysecret")
psk = []byte("!verysecretverysecretverysecret!")
}
staticI := cs.GenerateKeypair(hexReader(key0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment