fips

package
v0.0.0-...-7157dae Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FipsSystemReport

type FipsSystemReport struct {
	// FipsMode is true if the host/container
	// is currently running in FIPS mode, false othewise
	FipsMode *SystemReport `json:"fipsEnabled"`
	// CryptoLibsFips is true if the host/container
	// OpenSSL crypto libraries are FIPS-capable
	CryptoLibsFips *SystemReport `json:"cryptoLibFips"`
	// FipsCompatibleGoBinary is true if a given
	// Go binary has been compiled so that its
	// stdlib crypto routines call into a FIPS-compliant
	// crypto shared library
	FipsCompatibleGoBinary *SystemReport `json:"goBinaryFips"`
}

FipsSystemReport describes whether FIPS is enabled or compatible for different components of the system

func FipsSystemCheck

func FipsSystemCheck(goBinary string) *FipsSystemReport

FipsSystemCheck checks different components of the system and reports whether a given Go binary is running or is capable to run in FIPS mode

type SystemReport

type SystemReport struct {
	Value bool  `json:"value"`
	Err   error `json:"error,omitempty"`
}

SystemReport reports the value of of a system property and possible related errors

Jump to

Keyboard shortcuts

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