-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
547 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package wgephemeralpeer | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/cloudflare/circl/kem/kyber/kyber1024" | ||
"github.com/cloudflare/circl/kem/mceliece/mceliece460896" | ||
"github.com/cloudflare/circl/kem/mlkem/mlkem1024" | ||
) | ||
|
||
func TestCirclStringIdsAreUnchanged(t *testing.T) { | ||
// This is required because we're embedding KEM string identifiers | ||
// in the request that gets sent to the server. | ||
// If identifiers in CIRCL were to change, requests would start failing | ||
// inexplicably and everyone would be scratching their heads. | ||
if mceliece460896.Scheme().Name() != "mceliece460896" { | ||
t.Fatal("Identifier for CME has changed") | ||
} | ||
if kyber1024.Scheme().Name() != "Kyber1024" { | ||
t.Fatal("Identifier for Kyber has changed") | ||
} | ||
if mlkem1024.Scheme().Name() != "ML-KEM-1024" { | ||
t.Fatal("Identifier for ML-KEM has changed") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 5 additions & 4 deletions
9
vendor/github.com/cloudflare/circl/kem/kyber/kyber1024/kyber.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.