mirror of
https://github.com/logos-messaging/noise.git
synced 2026-01-02 14:13:07 +00:00
vectorgen: use 32-byte psk
The noise specification mandates that preshared keys are 256-bits. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6a0d1cad82
commit
1b34a57a83
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user