fips140cache

package standard library
go1.26.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package fips140cache provides a weak map that associates the lifetime of values with the lifetime of keys.

It can be used to associate a precomputed value (such as an internal/fips140 PrivateKey value, which in FIPS 140-3 mode may have required an expensive pairwise consistency test) with a type that doesn't have private fields (such as an ed25519.PrivateKey), or that can't be safely modified because it may be concurrently copied (such as an ecdsa.PrivateKey).

Index