Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce x/crypto and x/sys versions to match Go 1.21 #476

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

Lekensteyn
Copy link
Contributor

@Lekensteyn Lekensteyn commented Feb 7, 2024

  • Reduce x/crypto and x/sys versions to match Go 1.21

    CIRCL does not necessarily depend on newer x/crypto and x/sys versions.
    Lower the version requirements to match Go 1.21.7, this avoids the need
    to upgrade stdlib dependencies when integrating circl.

    For reference, we drop these golang.org/x/crypto commits:

      $ git -C ../golang-crypto log --oneline 2e82bdd1719d..v0.17.0 $(go list -deps ./... | grep golang.org/x/crypto/ | sed 's,golang.org/x/crypto/,./,')
      $ git -C ../golang-crypto log --oneline 2e82bdd1719d..v0.17.0 ./blake2b ./blake2s ./hkdf ./internal/alias ./chacha20 ./internal/poly1305 ./chacha20poly1305 ./cryptobyte/asn1 ./cryptobyte ./sha3
      b8ffc16 blake2b: drop Go 1.6, Go 1.8 compatibility
      bda2f3f argon2: avoid clobbering BP
      a2edfb5 cryptobyte: fix ReadOptionalASN1Boolean
      df0bc9e chacha20poly1305: guard PSHUFB usage with GOAMD64_v2
      74c2ba9 crypto/hkdf: remove useless call to Reset
      8779cbd all: update go directive to 1.18
      ec07f4e chacha20: drop Go 1.10 compatibility for arm64
      3f0842a sha3: have ShakeHash extend hash.Hash
      e90f1e1 cryptobyte: add uint48 methods
    

    No commits are dropped for golang.org/x/sys/cpu.


I tried bumping various other Golang versions in the GitHub Actions checks, but it failed. I'll open a new PR for those changes. Among the failures from bumping golangci-lint from v1.51.2 to v1.56.0:

golangci-lint v1.56.0 run output
$ docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.56.0 golangci-lint run -v --config=./.etc/golangci.yml
level=info msg="[config_reader] Used config file .etc/golangci.yml"
level=info msg="[lintersdb] Active 24 linters: [bodyclose depguard dogsled errcheck exportloopref forbidigo funlen goconst gocyclo gofmt gofumpt goimports gosec gosimple govet ineffassign misspell nakedret staticcheck stylecheck unconvert unparam unused whitespace]"
level=info msg="[loader] Go packages loading at mode 575 (deps|name|types_sizes|compiled_files|exports_file|files|imports) took 10.610263548s"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 102.587381ms"
level=info msg="[linters_context/goanalysis] analyzers took 4m4.886576307s with top 10 stages: buildir: 25.762946631s, goimports: 11.309356206s, gofumpt: 8.818465411s, gofmt: 8.101681715s, gosec: 6.564020371s, unparam: 5.694080726s, unconvert: 5.520426013s, misspell: 5.143790268s, buildssa: 4.096804683s, S1038: 3.514406985s"
level=info msg="[runner] Issues before processing: 1940, after processing: 341"
level=info msg="[runner] Processors filtering stat (out/in): skip_files: 1940/1940, skip_dirs: 1940/1940, nolint: 341/365, diff: 341/341, max_same_issues: 341/341, max_from_linter: 341/341, filename_unadjuster: 1940/1940, path_prettifier: 1940/1940, exclude-rules: 365/636, uniq_by_line: 341/341, source_code: 341/341, severity-rules: 341/341, cgo: 1940/1940, identifier_marker: 636/636, sort_results: 341/341, path_shortener: 341/341, path_prefixer: 341/341, max_per_file_from_linter: 341/341, fixer: 341/341, autogenerated_exclude: 636/1940, exclude: 636/636"
level=info msg="[runner] processing took 544.953155ms with stages: nolint: 186.615599ms, autogenerated_exclude: 147.657977ms, source_code: 106.261579ms, path_prettifier: 62.057677ms, exclude-rules: 25.832139ms, identifier_marker: 15.020894ms, skip_dirs: 1.219385ms, cgo: 80.678µs, path_shortener: 72.839µs, uniq_by_line: 69.866µs, filename_unadjuster: 52.479µs, max_per_file_from_linter: 8.961µs, max_same_issues: 897ns, skip_files: 348ns, diff: 347ns, fixer: 342ns, exclude: 302ns, severity-rules: 281ns, sort_results: 279ns, max_from_linter: 183ns, path_prefixer: 103ns"
level=info msg="[runner] linters took 6.613952177s with stages: goanalysis_metalinter: 6.068859403s"
::error file=group/group_test.go,line=27,col=11::string `/Mul` has 3 occurrences, make it a constant (goconst)
::error file=group/group_test.go,line=25,col=11::string `/Add` has 3 occurrences, make it a constant (goconst)
::error file=blindsign/blindrsa/brsa_test.go,line=23,col=7::G101: Potential hardcoded credentials: RSA private key (gosec)
::error file=xof/xof.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=xof/xof.go,line=13,col=2::import 'github.com/cloudflare/circl/xof/k12' is not allowed from list 'Main' (depguard)
::error file=expander/expander.go,line=10,col=2::import 'github.com/cloudflare/circl/xof' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/internal/common/common.go,line=15,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/keys' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/internal/common/rsa.go,line=38,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/keys' is not allowed from list 'Main' (depguard)
::error file=math/mlsbset/mlsbset.go,line=14,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=kem/frodo/frodo640shake/frodo.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=kem/frodo/frodo640shake/frodo.go,line=11,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=kem/frodo/frodo640shake/matrix_shake.go,line=4,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/ckem.go,line=11,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/ckem.go,line=12,col=2::import 'github.com/cloudflare/circl/xof' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/hybrid.go,line=36,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/hybrid.go,line=37,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/hybrid.go,line=38,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber1024' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/hybrid.go,line=39,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber512' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/hybrid.go,line=40,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber768' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/xkem.go,line=8,col=2::import 'github.com/cloudflare/circl/dh/x25519' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/xkem.go,line=9,col=2::import 'github.com/cloudflare/circl/dh/x448' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/xkem.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=kem/hybrid/xkem.go,line=11,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=22,col=2::import 'github.com/cloudflare/circl/hpke' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=23,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=24,col=2::import 'github.com/cloudflare/circl/kem/frodo/frodo640shake' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=25,col=2::import 'github.com/cloudflare/circl/kem/hybrid' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=26,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber1024' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=27,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber512' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes.go,line=28,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber768' is not allowed from list 'Main' (depguard)
::error file=math/polynomial/polynomial.go,line=5,col=8::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=zk/dleq/dleq.go,line=17,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/ed448.go,line=36,col=2::import 'github.com/cloudflare/circl/ecc/goldilocks' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/ed448.go,line=37,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/ed448.go,line=38,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/signapi.go,line=7,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/eddilithium.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/eddilithium.go,line=11,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/eddilithium.go,line=12,col=2::import 'github.com/cloudflare/circl/sign/dilithium/mode2' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/eddilithium.go,line=13,col=2::import 'github.com/cloudflare/circl/sign/ed25519' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/signapi.go,line=7,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/eddilithium.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/eddilithium.go,line=11,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/eddilithium.go,line=12,col=2::import 'github.com/cloudflare/circl/sign/dilithium/mode3' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/eddilithium.go,line=13,col=2::import 'github.com/cloudflare/circl/sign/ed448' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/signapi.go,line=7,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes.go,line=14,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes.go,line=15,col=2::import 'github.com/cloudflare/circl/sign/ed25519' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes.go,line=16,col=2::import 'github.com/cloudflare/circl/sign/ed448' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes.go,line=17,col=2::import 'github.com/cloudflare/circl/sign/eddilithium2' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes.go,line=18,col=2::import 'github.com/cloudflare/circl/sign/eddilithium3' is not allowed from list 'Main' (depguard)
::error file=pki/pki.go,line=10,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=pki/pki.go,line=11,col=2::import 'github.com/cloudflare/circl/sign/schemes' is not allowed from list 'Main' (depguard)
::error file=zk/dl/dl.go,line=23,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=zk/qndleq/qndleq.go,line=30,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/tkn20.go,line=17,col=2::import 'github.com/cloudflare/circl/abe/cpabe/tkn20/internal/dsl' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/tkn20.go,line=18,col=2::import 'github.com/cloudflare/circl/abe/cpabe/tkn20/internal/tkn' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/example_test.go,line=10,col=2::import 'github.com/cloudflare/circl/abe/cpabe/tkn20' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/dsl/ast.go,line=6,col=2::import 'github.com/cloudflare/circl/abe/cpabe/tkn20/internal/tkn' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/dsl/dsl.go,line=3,col=8::import 'github.com/cloudflare/circl/abe/cpabe/tkn20/internal/tkn' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/dsl/dsl_test.go,line=7,col=2::import 'github.com/cloudflare/circl/abe/cpabe/tkn20/internal/dsl' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/dsl/dsl_test.go,line=8,col=2::import 'github.com/cloudflare/circl/abe/cpabe/tkn20/internal/tkn' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/bk.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixG1.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixG2.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixGT.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixZp.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/pairAccum.go,line=6,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/policy.go,line=7,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/tk.go,line=11,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/util.go,line=9,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixGT_test.go,line=7,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixZp_test.go,line=7,col=2::import 'github.com/cloudflare/circl/ecc/bls12381' is not allowed from list 'Main' (depguard)
::error file=abe/cpabe/tkn20/internal/tkn/matrixZp_test.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/brsa.go,line=35,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/common' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/brsa.go,line=36,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/keys' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/brsa_test.go,line=19,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/partiallyblindrsa/pbrsa.go,line=14,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/common' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/partiallyblindrsa/pbrsa.go,line=15,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/keys' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/partiallyblindrsa/pbrsa_test.go,line=16,col=2::import 'github.com/cloudflare/circl/blindsign/blindrsa/internal/keys' is not allowed from list 'Main' (depguard)
::error file=cipher/ascon/ascon_test.go,line=14,col=2::import 'github.com/cloudflare/circl/cipher/ascon' is not allowed from list 'Main' (depguard)
::error file=cipher/ascon/ascon_test.go,line=15,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/csidh/csidh_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/csidh/fp511_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/curve4q/curve4Q.go,line=3,col=8::import 'github.com/cloudflare/circl/ecc/fourq' is not allowed from list 'Main' (depguard)
::error file=dh/curve4q/curve4Q_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sidh.go,line=7,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sidh.go,line=8,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/p434' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sidh.go,line=9,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/p503' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sidh.go,line=10,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/p751' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sike.go,line=8,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sike.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sidh_test.go,line=11,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sidh_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sike_test.go,line=14,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/sike_test.go,line=15,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/internal/p434/params.go,line=6,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/internal/p434/params_test.go,line=7,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/internal/p503/params.go,line=6,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/internal/p503/params_test.go,line=7,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/internal/p751/params.go,line=6,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/sidh/internal/p751/params_test.go,line=7,col=2::import 'github.com/cloudflare/circl/dh/sidh/internal/common' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/curve.go,line=4,col=2::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/curve_amd64.go,line=7,col=2::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/curve_generic.go,line=7,col=2::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/key.go,line=6,col=2::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/table.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/curve_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/curve_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/curve_test.go,line=10,col=2::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=dh/x25519/key_test.go,line=13,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/x448/curve.go,line=4,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=dh/x448/curve_amd64.go,line=7,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=dh/x448/curve_generic.go,line=7,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=dh/x448/key.go,line=6,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=dh/x448/table.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=dh/x448/curve_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=dh/x448/curve_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=dh/x448/curve_test.go,line=10,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=dh/x448/key_test.go,line=13,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/constants.go,line=6,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ec2.go,line=3,col=8::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g1.go,line=10,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g1.go,line=11,col=2::import 'github.com/cloudflare/circl/expander' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g1Isog.go,line=6,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g2.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g2.go,line=9,col=2::import 'github.com/cloudflare/circl/expander' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g2Isog.go,line=6,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/gt.go,line=3,col=8::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/pair.go,line=3,col=8::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/encoding_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g1_test.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g1_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g2_test.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/g2_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/hash_test.go,line=12,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/hash_test.go,line=13,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/pair_test.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/pair_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/psi_test.go,line=6,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/common.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/fp.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/scalar.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/cyclo6_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/fp12_test.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/fp12cubic_test.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/fp2_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/fp6_test.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/fp_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/uroot_test.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/scalar_test.go,line=9,col=2::import 'github.com/cloudflare/circl/ecc/bls12381/ff' is not allowed from list 'Main' (depguard)
::error file=ecc/bls12381/ff/scalar_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/curve.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/fp.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/curve_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/curve_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/fp_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/fq_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/point_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/fourq/point_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/constants.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/curve.go,line=4,col=8::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/isogeny.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/point.go,line=7,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/twist.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/twist.go,line=8,col=2::import 'github.com/cloudflare/circl/math' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/twist.go,line=9,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/twistPoint.go,line=6,col=2::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/twistTables.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp448' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/twist_basemult.go,line=6,col=2::import 'github.com/cloudflare/circl/math/mlsbset' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/isogeny_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/curve_test.go,line=7,col=2::import 'github.com/cloudflare/circl/ecc/goldilocks' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/curve_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/point_test.go,line=8,col=2::import 'github.com/cloudflare/circl/ecc/goldilocks' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/point_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/scalar_test.go,line=9,col=2::import 'github.com/cloudflare/circl/ecc/goldilocks' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/scalar_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/goldilocks/scalar_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/arith.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/p384opt.go,line=10,col=2::import 'github.com/cloudflare/circl/math' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/arith_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/opt_test.go,line=13,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/point_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/p384_test.go,line=9,col=2::import 'github.com/cloudflare/circl/ecc/p384' is not allowed from list 'Main' (depguard)
::error file=ecc/p384/p384_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=expander/expander_test.go,line=16,col=2::import 'github.com/cloudflare/circl/expander' is not allowed from list 'Main' (depguard)
::error file=expander/expander_test.go,line=17,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=expander/expander_test.go,line=18,col=2::import 'github.com/cloudflare/circl/xof' is not allowed from list 'Main' (depguard)
::error file=group/hash.go,line=6,col=2::import 'github.com/cloudflare/circl/expander' is not allowed from list 'Main' (depguard)
::error file=group/ristretto255.go,line=10,col=2::import 'github.com/bwesterb/go-ristretto' is not allowed from list 'Main' (depguard)
::error file=group/ristretto255.go,line=11,col=2::import 'github.com/cloudflare/circl/expander' is not allowed from list 'Main' (depguard)
::error file=group/ristretto255.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=group/short.go,line=13,col=2::import 'github.com/cloudflare/circl/ecc/p384' is not allowed from list 'Main' (depguard)
::error file=group/short.go,line=14,col=2::import 'github.com/cloudflare/circl/expander' is not allowed from list 'Main' (depguard)
::error file=group/group_test.go,line=9,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=group/group_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=group/hash_test.go,line=11,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=group/hash_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=hpke/algs.go,line=14,col=2::import 'github.com/cloudflare/circl/dh/x25519' is not allowed from list 'Main' (depguard)
::error file=hpke/algs.go,line=15,col=2::import 'github.com/cloudflare/circl/dh/x448' is not allowed from list 'Main' (depguard)
::error file=hpke/algs.go,line=16,col=2::import 'github.com/cloudflare/circl/ecc/p384' is not allowed from list 'Main' (depguard)
::error file=hpke/algs.go,line=17,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/algs.go,line=18,col=2::import 'github.com/cloudflare/circl/kem/kyber/kyber768' is not allowed from list 'Main' (depguard)
::error file=hpke/hpke.go,line=22,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/hybridkem.go,line=13,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/kembase.go,line=9,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/shortkem.go,line=10,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/xkem.go,line=10,col=2::import 'github.com/cloudflare/circl/dh/x25519' is not allowed from list 'Main' (depguard)
::error file=hpke/xkem.go,line=11,col=2::import 'github.com/cloudflare/circl/dh/x448' is not allowed from list 'Main' (depguard)
::error file=hpke/xkem.go,line=12,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/aead_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=hpke/vectors_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=hpke/vectors_test.go,line=13,col=2::import 'github.com/cloudflare/circl/kem' is not allowed from list 'Main' (depguard)
::error file=hpke/hpke_test.go,line=9,col=2::import 'github.com/cloudflare/circl/hpke' is not allowed from list 'Main' (depguard)
::error file=kem/frodo/kat_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/nist' is not allowed from list 'Main' (depguard)
::error file=kem/frodo/kat_test.go,line=13,col=2::import 'github.com/cloudflare/circl/kem/schemes' is not allowed from list 'Main' (depguard)
::error file=kem/kyber/kat_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/nist' is not allowed from list 'Main' (depguard)
::error file=kem/kyber/kat_test.go,line=13,col=2::import 'github.com/cloudflare/circl/kem/schemes' is not allowed from list 'Main' (depguard)
::error file=kem/schemes/schemes_test.go,line=8,col=2::import 'github.com/cloudflare/circl/kem/schemes' is not allowed from list 'Main' (depguard)
::error file=math/primes_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/wnaf_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/fp25519/fp.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=math/fp25519/fp_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=math/fp25519/fp_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/fp448/fp.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=math/fp448/edgecases_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=math/fp448/edgecases_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/fp448/fp_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=math/fp448/fp_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/mlsbset/mlsbset_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=math/mlsbset/mlsbset_test.go,line=10,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/mlsbset/mlsbset_test.go,line=11,col=2::import 'github.com/cloudflare/circl/math/mlsbset' is not allowed from list 'Main' (depguard)
::error file=math/polynomial/polynomial_test.go,line=6,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=math/polynomial/polynomial_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=math/polynomial/polynomial_test.go,line=8,col=2::import 'github.com/cloudflare/circl/math/polynomial' is not allowed from list 'Main' (depguard)
::error file=oprf/client.go,line=6,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=oprf/client.go,line=7,col=2::import 'github.com/cloudflare/circl/zk/dleq' is not allowed from list 'Main' (depguard)
::error file=oprf/keys.go,line=7,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=oprf/oprf.go,line=57,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=oprf/oprf.go,line=58,col=2::import 'github.com/cloudflare/circl/zk/dleq' is not allowed from list 'Main' (depguard)
::error file=oprf/server.go,line=7,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=oprf/server.go,line=8,col=2::import 'github.com/cloudflare/circl/zk/dleq' is not allowed from list 'Main' (depguard)
::error file=oprf/oprf_test.go,line=11,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=oprf/oprf_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=oprf/vectors_test.go,line=15,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=oprf/vectors_test.go,line=16,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=oprf/vectors_test.go,line=17,col=2::import 'github.com/cloudflare/circl/zk/dleq' is not allowed from list 'Main' (depguard)
::error file=ot/simot/simotlocal.go,line=11,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=ot/simot/simotparty.go,line=3,col=8::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=ot/simot/simot_test.go,line=12,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/internal/common/params.go,line=4,col=2::import 'github.com/cloudflare/circl/pke/kyber/internal/common/params' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/internal/common/sample.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/internal/common/sample.go,line=7,col=2::import 'github.com/cloudflare/circl/simd/keccakf1600' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/kyber512/internal/cpapke.go,line=4,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/kyber512/internal/cpapke.go,line=5,col=2::import 'github.com/cloudflare/circl/pke/kyber/internal/common' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/kyber512/internal/mat.go,line=4,col=2::import 'github.com/cloudflare/circl/pke/kyber/internal/common' is not allowed from list 'Main' (depguard)
::error file=pke/kyber/kyber512/internal/vec.go,line=4,col=2::import 'github.com/cloudflare/circl/pke/kyber/internal/common' is not allowed from list 'Main' (depguard)
::error file=pki/pki_test.go,line=6,col=2::import 'github.com/cloudflare/circl/pki' is not allowed from list 'Main' (depguard)
::error file=pki/pki_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/schemes' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/dilithium_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/kat_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/nist' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/example_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/dilithium' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/internal/common/params.go,line=4,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common/params' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode2/internal/params_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode2aes/internal/params_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/dilithium.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/dilithium.go,line=9,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/mat.go,line=4,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/pack.go,line=4,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/rounding.go,line=4,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/sample.go,line=6,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/sample.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/sample.go,line=8,col=2::import 'github.com/cloudflare/circl/simd/keccakf1600' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/vec.go,line=4,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/dilithium_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/pack_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/params_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/rounding_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3/internal/sample_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode3aes/internal/params_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode5/internal/params_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/dilithium/mode5aes/internal/params_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/dilithium/internal/common' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/ed25519.go,line=49,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/mult.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/mult.go,line=9,col=2::import 'github.com/cloudflare/circl/math' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/mult.go,line=10,col=2::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/point.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/signapi.go,line=7,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/tables.go,line=3,col=8::import 'github.com/cloudflare/circl/math/fp25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/modular_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/conv' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/modular_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/point_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/ed25519_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/ed25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/extra_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/extra_test.go,line=12,col=2::import 'github.com/cloudflare/circl/sign/ed25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/rfc8032_test.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/rfc8032_test.go,line=13,col=2::import 'github.com/cloudflare/circl/sign/ed25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/wycheproof_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed25519/wycheproof_test.go,line=12,col=2::import 'github.com/cloudflare/circl/sign/ed25519' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/ed448_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/ed448_test.go,line=12,col=2::import 'github.com/cloudflare/circl/sign/ed448' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/rfc8032_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/rfc8032_test.go,line=8,col=2::import 'github.com/cloudflare/circl/sign/ed448' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/wycheproof_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=sign/ed448/wycheproof_test.go,line=12,col=2::import 'github.com/cloudflare/circl/sign/ed448' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/eddilithium_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/eddilithium2' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium2/example_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/eddilithium2' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/eddilithium_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign/eddilithium3' is not allowed from list 'Main' (depguard)
::error file=sign/eddilithium3/example_test.go,line=6,col=2::import 'github.com/cloudflare/circl/sign/eddilithium3' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes_test.go,line=7,col=2::import 'github.com/cloudflare/circl/sign' is not allowed from list 'Main' (depguard)
::error file=sign/schemes/schemes_test.go,line=8,col=2::import 'github.com/cloudflare/circl/sign/schemes' is not allowed from list 'Main' (depguard)
::error file=simd/keccakf1600/f1600x.go,line=23,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=simd/keccakf1600/f1600x4_amd64.go,line=3,col=8::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=simd/keccakf1600/example_test.go,line=7,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=simd/keccakf1600/example_test.go,line=8,col=2::import 'github.com/cloudflare/circl/simd/keccakf1600' is not allowed from list 'Main' (depguard)
::error file=tss/rsa/padding.go,line=8,col=2::import 'github.com/cloudflare/circl/tss/rsa/internal' is not allowed from list 'Main' (depguard)
::error file=tss/rsa/padding.go,line=9,col=2::import 'github.com/cloudflare/circl/tss/rsa/internal/pss' is not allowed from list 'Main' (depguard)
::error file=tss/rsa/rsa_threshold.go,line=21,col=2::import 'github.com/cloudflare/circl/math' is not allowed from list 'Main' (depguard)
::error file=tss/rsa/rsa_threshold_test.go,line=15,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=xof/xof_test.go,line=9,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=xof/xof_test.go,line=10,col=2::import 'github.com/cloudflare/circl/xof' is not allowed from list 'Main' (depguard)
::error file=xof/k12/k12.go,line=12,col=2::import 'github.com/cloudflare/circl/internal/sha3' is not allowed from list 'Main' (depguard)
::error file=xof/k12/k12.go,line=13,col=2::import 'github.com/cloudflare/circl/simd/keccakf1600' is not allowed from list 'Main' (depguard)
::error file=zk/dl/dl_test.go,line=7,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=zk/dl/dl_test.go,line=8,col=2::import 'github.com/cloudflare/circl/zk/dl' is not allowed from list 'Main' (depguard)
::error file=zk/dleq/dleq_test.go,line=10,col=2::import 'github.com/cloudflare/circl/group' is not allowed from list 'Main' (depguard)
::error file=zk/dleq/dleq_test.go,line=11,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=zk/dleq/dleq_test.go,line=12,col=2::import 'github.com/cloudflare/circl/zk/dleq' is not allowed from list 'Main' (depguard)
::error file=zk/qndleq/qndleq_test.go,line=8,col=2::import 'github.com/cloudflare/circl/internal/test' is not allowed from list 'Main' (depguard)
::error file=zk/qndleq/qndleq_test.go,line=9,col=2::import 'github.com/cloudflare/circl/zk/qndleq' is not allowed from list 'Main' (depguard)
::error file=blindsign/blindrsa/internal/common/rsa.go,line=92,col=3::naked return in func `decrypt` with 48 lines of code (nakedret)
::error file=blindsign/blindrsa/internal/common/rsa.go,line=110,col=5::naked return in func `decrypt` with 48 lines of code (nakedret)
::error file=kem/hybrid/ckem.go,line=106,col=9::SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh.  (staticcheck)
::error file=kem/hybrid/ckem.go,line=125,col=20::SA1019: elliptic.GenerateKey has been deprecated since Go 1.21: for ECDH, use the GenerateKey methods of the [crypto/ecdh] package; for ECDSA, use the GenerateKey function of the crypto/ecdsa package.  (staticcheck)
::error file=kem/hybrid/ckem.go,line=196,col=10::SA1019: elliptic.Unmarshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function accepts an encoding equivalent to that of the NewPublicKey methods in crypto/ecdh.  (staticcheck)
::error file=ecc/p384/point_test.go,line=18,col=24::SA1019: params.ScalarBaseMult has been deprecated since Go 1.21: the [CurveParams] methods are deprecated and are not guaranteed to provide any security property. For ECDH, use the [crypto/ecdh] package. For ECDSA, use the [crypto/ecdsa] package with a [Curve] value returned directly from [P224], [P256], [P384], or [P521].  (staticcheck)
::error file=group/short.go,line=231,col=9::SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh.  (staticcheck)
::error file=group/short.go,line=257,col=11::SA1019: elliptic.Unmarshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function accepts an encoding equivalent to that of the NewPublicKey methods in crypto/ecdh.  (staticcheck)
::error file=hpke/shortkem.go,line=79,col=19::SA1019: elliptic.GenerateKey has been deprecated since Go 1.21: for ECDH, use the GenerateKey methods of the [crypto/ecdh] package; for ECDSA, use the GenerateKey function of the crypto/ecdsa package.  (staticcheck)
::error file=hpke/shortkem.go,line=99,col=10::SA1019: elliptic.Unmarshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function accepts an encoding equivalent to that of the NewPublicKey methods in crypto/ecdh.  (staticcheck)
::error file=hpke/shortkem.go,line=120,col=9::SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh.  (staticcheck)
level=info msg="File cache stats: 687 entries of total size 3.6MiB"
level=info msg="Memory: 175 samples, avg is 159.0MB, max is 554.2MB"
level=info msg="Execution took 17.336116207s"

CIRCL does not necessarily depend on newer x/crypto and x/sys versions.
Lower the version requirements to match Go 1.21.7, this avoids the need
to upgrade stdlib dependencies when integrating circl.

For reference, we drop these `golang.org/x/crypto` commits:

    $ git -C ../golang-crypto log --oneline 2e82bdd1719d..v0.17.0 $(go list -deps ./... | grep golang.org/x/crypto/ | sed 's,golang.org/x/crypto/,./,')
    $ git -C ../golang-crypto log --oneline 2e82bdd1719d..v0.17.0 ./blake2b ./blake2s ./hkdf ./internal/alias ./chacha20 ./internal/poly1305 ./chacha20poly1305 ./cryptobyte/asn1 ./cryptobyte ./sha3
    b8ffc16 blake2b: drop Go 1.6, Go 1.8 compatibility
    bda2f3f argon2: avoid clobbering BP
    a2edfb5 cryptobyte: fix ReadOptionalASN1Boolean
    df0bc9e chacha20poly1305: guard PSHUFB usage with GOAMD64_v2
    74c2ba9 crypto/hkdf: remove useless call to Reset
    8779cbd all: update go directive to 1.18
    ec07f4e chacha20: drop Go 1.10 compatibility for arm64
    3f0842a sha3: have ShakeHash extend hash.Hash
    e90f1e1 cryptobyte: add uint48 methods

No commits are dropped for `golang.org/x/sys/cpu`.
@Lekensteyn
Copy link
Contributor Author

I am puzzled why I am seeing golangci-lint errors in CI. I can reproduce part of it locally:

$ docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.51.2 golangci-lint run --config=./.etc/golangci.yml ./...
::error file=xof/xof.go,line=56,col=10::cannot use blake2xb{…} (value of type blake2xb) as XOF value in return statement: blake2xb does not implement XOF (missing method Read) (typecheck)
::error file=xof/xof.go,line=59,col=10::cannot use blake2xs{…} (value of type blake2xs) as XOF value in return statement: blake2xs does not implement XOF (missing method Read) (typecheck)
::error file=xof/xof.go,line=62,col=10::cannot use k12d10{…} (value of type k12d10) as XOF value in return statement: k12d10 does not implement XOF (missing method Read) (typecheck)
::error file=xof/xof.go,line=74,col=40::cannot use blake2xb{…} (value of type blake2xb) as XOF value in return statement: blake2xb does not implement XOF (missing method Read) (typecheck)
::error file=xof/xof.go,line=78,col=40::cannot use blake2xs{…} (value of type blake2xs) as XOF value in return statement: blake2xs does not implement XOF (missing method Read) (typecheck)
::error file=xof/xof.go,line=84,col=9::cannot use k12d10{…} (value of type k12d10) as XOF value in return statement: k12d10 does not implement XOF (missing method Read) (typecheck)
::error file=group/group_test.go,line=6,col=2::"fmt" imported and not used (typecheck)
::error file=group/hash_test.go,line=6,col=2::"fmt" imported and not used (typecheck)

But it goes away as soon as I go mod vendor 🤷
Something to check after some sleep.

@Lekensteyn
Copy link
Contributor Author

Lekensteyn commented Feb 7, 2024

I dropped the GitHub actions update change. If that fixes the build failure, I will update this PR title/description. And then open a new PR to try to update GitHub Actions and address golangci-lint issues.

@armfazh
Copy link
Contributor

armfazh commented Feb 8, 2024

I can update golanci-lint version later, as I have already started working on this locally.

@Lekensteyn Lekensteyn changed the title Reduce x/crypto and x/sys versions to match Go 1.21, bump GitHub Actions and Go versions Reduce x/crypto and x/sys versions to match Go 1.21 Feb 8, 2024
@Lekensteyn Lekensteyn merged commit 454cfdc into main Feb 8, 2024
10 checks passed
@Lekensteyn Lekensteyn deleted the pwu/base-go1.21.7 branch February 8, 2024 08:34
@Lekensteyn
Copy link
Contributor Author

Lekensteyn commented Feb 8, 2024

I now understand why golangci-lint showed such weird errors. The golangci-lint v1.51.2 binary was built with Go 1.20.1 while the golangci-lint v1.56.0 binary was properly built with Go 1.22.0. So in order to be able to update to Go 1.22, a golangci-lint update is needed. That does not seem to be too complicated, so I can make extra changes to the GitHub Actions update.

Changes are here: #477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants