package fips140only

import "crypto/internal/fips140only"

Index

Functions

func ApprovedHash

func ApprovedHash(h hash.Hash) bool

func ApprovedRandomReader

func ApprovedRandomReader(r io.Reader) bool

func Enforced

func Enforced() bool

Enforced reports whether FIPS 140-only mode is enabled and enforced, in which non-approved cryptography returns an error or panics.

Source Files

fips140only.go

Version
v1.26.1
Published
Mar 5, 2026
Platform
js/wasm
Imports
7 packages
Last checked
7 minutes ago

Tools for package owners.