fips

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fips reports FIPS 140-3 mode and provides helpers to gate operations that rely on cryptography not approved by the Go FIPS 140-3 module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisabledError

func DisabledError(op, algo string) error

DisabledError returns an error indicating an operation is unavailable in the FIPS build. op is the user-facing operation name and algo the algorithm or primitive that is not part of the FIPS 140-3 module.

func Enabled

func Enabled() bool

Enabled reports whether the Go FIPS 140-3 module is active (GODEBUG=fips140=on or fips140=only, or built with //go:debug fips140=...).

func Enforced

func Enforced() bool

Enforced reports whether strict FIPS 140-3 enforcement is active (GODEBUG=fips140=only and not currently inside a WithoutEnforcement scope).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL