@@ -1591,29 +1591,34 @@ fi
15911591if test "$KERNEL_MODE_DEFAULTS" = "yes" && test "$ENABLED_ALL_CRYPT" != "yes"
15921592then
15931593 # note several of these are currently on by default, including aesgcm, sha512
1594- test "$enable_aesgcm" = "" && enable_aesgcm=yes
1595- test "$enable_aesccm" = "" && enable_aesccm=yes
1596- test "$enable_aesecb" = "" && enable_aesecb=yes
1597- test "$enable_aesctr" = "" && enable_aesctr=yes
1598- test "$enable_aesofb" = "" && enable_aesofb=yes
1599- test "$enable_aescfb" = "" && enable_aescfb=yes
1600- test "$enable_cmac" = "" && enable_cmac=yes
1594+ if test "$enable_aes" != "no"
1595+ then
1596+ test "$enable_aesgcm" = "" && enable_aesgcm=yes
1597+ test "$enable_aesccm" = "" && enable_aesccm=yes
1598+ test "$enable_aesecb" = "" && enable_aesecb=yes
1599+ test "$enable_aesctr" = "" && enable_aesctr=yes
1600+ test "$enable_aesofb" = "" && enable_aesofb=yes
1601+ test "$enable_cmac" = "" && enable_cmac=yes
1602+ fi
16011603 test "$enable_sha224" = "" && enable_sha224=yes
16021604 test "$enable_sha512" = "" && enable_sha512=yes
16031605 test "$enable_sha3" = "" && enable_sha3=yes
16041606 test "$enable_keygen" = "" && enable_keygen=yes
1605- test "$enable_hkdf" = "" && enable_hkdf=yes
1606- test "$enable_eccencrypt" = "" && test "$enable_ecc" != "no" && enable_eccencrypt=yes
1607- test "$enable_fpecc" = "" && test "$enable_ecc" != "no" && enable_fpecc=yes
1608- test "$enable_supportedcurves" = "" && enable_supportedcurves=yes
1609- test "$enable_rng_bank" = "" && enable_rng_bank=yes
1607+ if test "$enable_ecc" != "no"
1608+ then
1609+ test "$enable_eccencrypt" = "" && enable_eccencrypt=yes
1610+ test "$enable_fpecc" = "" && enable_fpecc=yes
1611+ test "$enable_supportedcurves" = "" && enable_supportedcurves=yes
1612+ fi
1613+ test "$enabled_rng" != "no" && test "$enable_rng_bank" = "" && enable_rng_bank=yes
16101614 if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -ge 6
16111615 then
1616+ test "$enable_aes" != "no" && test "$enable_aescfb" = "" && enable_aescfb=yes
16121617 test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes
1613- test "$enable_aesxts" = "" && enable_aesxts=yes
1618+ test "$enable_aes" != "no" && test "$ enable_aesxts" = "" && enable_aesxts=yes
16141619 test "$enable_aesxts_stream" = "" && test "$enable_aesxts" = "yes" && enable_aesxts_stream=yes
1615- test "$enable_shake128" = "" && enable_shake128=yes
1616- test "$enable_shake256" = "" && enable_shake256=yes
1620+ test "$enable_shake128" = "" && test "$enable_sha3" = "yes" && enable_shake128=yes
1621+ test "$enable_shake256" = "" && test "$enable_sha3" = "yes" && enable_shake256=yes
16171622 test "$enable_compkey" = "" && enable_compkey=yes
16181623 fi
16191624 # Enable DH const table speedups (eliminates `-lm` math lib dependency)
0 commit comments