hmackeytest

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Overview

Package hmackeytest lets tests run hmackey's checks as if FIPS mode were on or off. Only _test.go files may import it; a test in internal/hmackey fails the build of any production file that does.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFIPS

func SetFIPS(on bool) (restore func())

SetFIPS makes hmackey.Check and hmackey.Usable behave as if FIPS mode were on (or off) until restore is called. Not safe for parallel tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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