full diff: https://github.com/theupdateframework/notary/compare/v0.6.1...v0.7.0
Changelog:
v0.7.0 12/01/2021
------------------------
- Switch to Go modules
- Use golang/x/crypto for ed25519
- Update Go version
- Update dependency versions
- Fixes from using Gosec for source analysis
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9f6966d4ec)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
15 lines
365 B
Go
15 lines
365 B
Go
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()
|
|
}
|