Linux cryptographic layer development
 help / color / mirror / Atom feed
* CTR mode: Kconfig cyclic dependency
@ 2016-06-09  9:07 Stephan Mueller
  2016-06-12 10:58 ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Stephan Mueller @ 2016-06-09  9:07 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto

Hi Herbert,

during the finalization of my patch set for converting the CTR DRBG over to 
CTR AES, I ran into a Kconfig problem. Maybe you have an idea how to resolve 
it.

As the CTR DRBG now uses the CTR mode, I added "select CRYPTO_CTR" to 
CRYPTO_DRBG_CTR. This now lead to the following cyclic dependency:

crypto/Kconfig:1547:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
crypto/Kconfig:1547:    symbol CRYPTO_DRBG_MENU is selected by 
CRYPTO_RNG_DEFAULT
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
crypto/Kconfig:83:      symbol CRYPTO_RNG_DEFAULT is selected by CRYPTO_SEQIV
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
crypto/Kconfig:255:     symbol CRYPTO_SEQIV is selected by CRYPTO_CTR
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
crypto/Kconfig:286:     symbol CRYPTO_CTR is selected by CRYPTO_DRBG_CTR
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
crypto/Kconfig:1566:    symbol CRYPTO_DRBG_CTR depends on CRYPTO_DRBG_MENU

i.e. CRYPTO_RNG_DEFAULT -> CRYPTO_DRBG_MENU -> CRYPTO_CTR -> CRYPTO_SEQIV -> 
CRYPTO_RNG_DEFAULT

Thanks
Stephan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-12 11:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09  9:07 CTR mode: Kconfig cyclic dependency Stephan Mueller
2016-06-12 10:58 ` Herbert Xu
2016-06-12 11:05   ` Stephan Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox