r/linuxfromscratch • • Apr 23 '23

Question about enabling options in kernel

Hi, i am currently following the BLFS guide (systemd). I want to install cryptsetup so I installed its dependencies. Now i have to enable some options in the kernel (6.1.11)configuration as it says in the kernel. The problem is that I can't find the following option in the mentioned section of the config, i went to Cryptographic API section and cant see the following options:

Cryptographic API ---> </M> XTS support [CONFIG_CRYPTO_XTS] </M> SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256] </M> AES cipher algorithms [CONFIG_CRYPTO_AES] </M> User-space interface for symmetric key cipher algorithms [CONFIG_CRYPTO_USER_API_SKCIPHER]

Someone knows where are those options are? Also, can i edit them in any other way than recompiling the kernel? Thanks in advance.

4 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/Cosmic_N Apr 23 '23

I tried the search option in the menuconfig but i was not familiar with the output and didnt know how to enable/disable the options tbh.

So, for example, if i change # CONFIG_KERNEL_BZIP2 is not set to CONFIG_KERNEL_BZIP2=y and then recompile the kernel will be that option enable in the system? I though i have to go throught the menuconfig in order to enable options. Thanks for the reply

2

u/codeasm Apr 23 '23

I tried to write a short trick to search and find your symbols and how to use it to manualy edit your config. but reddit wiped my comment after I tried pasting stuff.So instead, tried to find them for you. switching these in menuconfig, it should also switch on the right other symbols and when you build the modules aswell, it should work.

Your missing symbols should be here:

Cryptographic API  ---> Length-preserving ciphers and modes  --->    XTS (XOR Encrypt XOR with ciphertext stealing) (NEW)
Cryptographic API  ---> Hashes, digests, and MACs ---> SHA-224 and SHA-256 (CRYPTO_SHA256
Cryptographic API  --->  Block ciphers ---> AES (Advanced Encryption Standard) (CRYPTO_AES [=y])
Cryptographic API  ---> Userspace interface   ---> Symmetric key cipher algorithms (CRYPTO_USER_API_SKCIPHER [=n])