Update vendor

This commit is contained in:
Ettore Di Giacinto
2021-03-11 17:29:15 +01:00
parent 0028dd3a92
commit f8989e464e
389 changed files with 75154 additions and 1130 deletions

14
vendor/github.com/theupdateframework/notary/fips.go generated vendored Normal file
View File

@@ -0,0 +1,14 @@
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()
}