]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/internal/fips140/rsa: avoid CAST unsetting the service indicator
authorFilippo Valsorda <filippo@golang.org>
Mon, 27 Jan 2025 13:21:43 +0000 (14:21 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 27 Jan 2025 20:16:32 +0000 (12:16 -0800)
Without fipsApproved set, when the CAST runs it sets the service
indicator to false for the whole span.

This is a very late Go 1.24 change, but it is necessary for the frozen
FIPS module, and doesn't impact anything else than the FIPS status
indicator value.

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

index ec7b5f3aeb92751ae79ab9e770e347b42109d98b..b900b32c88864181a990cb5d35aa61395062ddfb 100644 (file)
@@ -171,6 +171,7 @@ func testPrivateKey() *PrivateKey {
                        N: N, E: 65537,
                },
                d: d, p: p, q: q, qInv: qInv, dP: dP, dQ: dQ,
+               fipsApproved: true,
        }
 
 }