]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips140/mlkem: make CAST conditional
authorFilippo Valsorda <filippo@golang.org>
Mon, 22 Sep 2025 12:05:23 +0000 (14:05 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 29 Sep 2025 21:04:36 +0000 (14:04 -0700)
commitdb4fade7599d49dc85a7ef670499be0ccd62c58e
treea07c7e5d0e64c73bbc240f03df7e12415cf4db8c
parentdb3cb3fd9a09355a2f239dcb28c480b18bfa7f5e
crypto/internal/fips140/mlkem: make CAST conditional

It taks north of 130µs on my machine, which is enough to be worth
shaving off at init time.

Change-Id: I6a6a696463de228bc3e7b9ca10c12ddbaabdf384
Reviewed-on: https://go-review.googlesource.com/c/go/+/707695
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/crypto/internal/fips140/mlkem/cast.go
src/crypto/internal/fips140/mlkem/mlkem1024.go
src/crypto/internal/fips140/mlkem/mlkem768.go
src/crypto/internal/fips140test/cast_test.go