mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-17 17:26:57 +01:00
Make post-quantum handshakes hybrid only: drop ix_psk2_mlkem1024, need a v3 certificate, and leave a classical msg1 crossing a hybrid one unanswered
This commit is contained in:
1 parent
656164b259
commit
dff5c51dd6
18 files changed
+337
-609
No files matched your search
@@ -149,8 +149,6 @@ func TestHybridIX_CertVersions(t *testing.T) {
|
||||
require.ErrorIs(t, err, ErrCertVersionMismatch)
|
||||
_, err = NewMachine(cert.Version3, p.initCS.getCredential, v, func() (uint32, error) { return 1, nil }, true, header.HandshakeIXPSK0)
|
||||
require.ErrorIs(t, err, ErrCertVersionMismatch)
|
||||
_, err = NewMachine(cert.Version3, p.initCS.getCredential, v, func() (uint32, error) { return 1, nil }, true, header.HandshakeIXPSK2MLKEM1024)
|
||||
require.ErrorIs(t, err, ErrCertVersionMismatch)
|
||||
|
||||
// The v2 form still does a classical handshake, here with a peer that only has v2.
|
||||
ca2 := cert.V2Form(p.ca)
|
||||
|
||||
Reference in new issue
Block a user