mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
365 B
15 lines
365 B
3 years ago
|
package notary
|
||
|
|
||
|
import (
|
||
|
"crypto"
|
||
|
// Need to import md5 so can test availability.
|
||
|
_ "crypto/md5" // #nosec
|
||
|
)
|
||
|
|
||
|
// FIPSEnabled returns true if running in FIPS mode.
|
||
|
// If compiled in FIPS mode the md5 hash function is never available
|
||
|
// even when imported. This seems to be the best test we have for it.
|
||
|
func FIPSEnabled() bool {
|
||
|
return !crypto.MD5.Available()
|
||
|
}
|