mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	When dropping SHA512_ALGO in general, we didn't catch some cases where
an option was selecting  both SHA512 and SHA512_ALGO and caused them to
select SHA512 twice.  Kconfig doesn't complain, but this is still wrong
and should be corrected.
Fixes: e60e44993120 ("lib: Drop SHA512_ALGO in lieu of SHA512")
Reported-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
		
	
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			689 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			689 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
menuconfig CRYPT_PW
 | 
						|
	bool "Add crypt support for password-based unlock"
 | 
						|
	depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
 | 
						|
	help
 | 
						|
	  Enable support for crypt-style hashed passphrases.
 | 
						|
	  This will then be used as the mechanism of choice to
 | 
						|
	  verify whether the entered password to unlock the
 | 
						|
	  console is correct or not.
 | 
						|
 | 
						|
if CRYPT_PW
 | 
						|
 | 
						|
config CRYPT_PW_SHA256
 | 
						|
	bool "Provide sha256crypt"
 | 
						|
	select SHA256
 | 
						|
	select SHA256_ALGO
 | 
						|
	help
 | 
						|
	  Enables support for the sha256crypt password-hashing algorithm.
 | 
						|
	  The prefix is "$5$".
 | 
						|
 | 
						|
config CRYPT_PW_SHA512
 | 
						|
	bool "Provide sha512crypt"
 | 
						|
	select SHA512
 | 
						|
	help
 | 
						|
	  Enables support for the sha512crypt password-hashing algorithm.
 | 
						|
	  The prefix is "$6$".
 | 
						|
 | 
						|
endif
 |