mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	update the dependency to v0.7.0 to be closer to what docker/cli uses; https://github.com/theupdateframework/notary/compare/v0.6.1...v0.7.0 Note that docker/cli is slightly ahead of v0.7.0, and uses bf96a202a09a; https://github.com/theupdateframework/notary/compare/v0.7.0...bf96a202a09a 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()
 | 
						|
}
 |