Skip to content

Commit 3645026

Browse files
committed
Added back circl deserialization test (cloudflare/circl#499)
1 parent 7c1f43e commit 3645026

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module go.dedis.ch/kyber/v4
33
go 1.20
44

55
require (
6-
github.com/cloudflare/circl v1.3.7
6+
github.com/cloudflare/circl v1.3.9
77
github.com/consensys/gnark-crypto v0.12.1
88
github.com/jonboulle/clockwork v0.4.0
99
github.com/kilic/bls12-381 v0.1.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/bits-and-blooms/bitset v1.13.0 h1:bAQ9OPNFYbGHV6Nez0tmNI0RiEu7/hxlYJRUA0wFAVE=
22
github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
3-
github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
4-
github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
3+
github.com/cloudflare/circl v1.3.9 h1:QFrlgFYf2Qpi8bSpVPK1HBvWpx16v/1TZivyo7pGuBE=
4+
github.com/cloudflare/circl v1.3.9/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU=
55
github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ=
66
github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI=
77
github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M=

pairing/bls12381/bls12381_test.go

-8
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ func TestZKCryptoVectorsG1Compressed(t *testing.T) {
7676
tests, err := filepath.Glob(deserializationG1Tests)
7777
require.NoError(t, err)
7878

79-
// Remove from tests "deserialization_fails_with_b_flag_and_a_flag_true.yaml", failing on Circl (index 6)
80-
// https://github.com/cloudflare/circl/issues/499 - Remove the line when the issue is fixed
81-
tests = append(tests[:6], tests[7:]...)
82-
8379
for _, testPath := range tests {
8480
t.Run(testPath, func(t *testing.T) {
8581
testFile, err := os.Open(testPath)
@@ -127,10 +123,6 @@ func TestZKCryptoVectorsG2Compressed(t *testing.T) {
127123
tests, err := filepath.Glob(deserializationG2Tests)
128124
require.NoError(t, err)
129125

130-
// Remove from tests "deserialization_fails_with_b_flag_and_a_flag_true.yaml", failing on Circl (index 6)
131-
// https://github.com/cloudflare/circl/issues/499 - Remove the line when the issue is fixed
132-
tests = append(tests[:6], tests[7:]...)
133-
134126
for _, testPath := range tests {
135127
t.Run(testPath, func(t *testing.T) {
136128
testFile, err := os.Open(testPath)

0 commit comments

Comments
 (0)