...
Run Format

Package fips140only

import "crypto/internal/fips140only"
Overview
Index

Overview ▾

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.