Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911316 - Please enable HCTR2 and Adiantum encryption modes in the kernel
Summary: Please enable HCTR2 and Adiantum encryption modes in the kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-27 14:18 UTC by Francisco Blas Izquierdo Riera (RETIRED)
Modified: 2024-07-01 16:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2023-07-27 14:18:58 UTC
The kernel image provided on the LiveCD does not provide kernel modules for neither adiantum nor hctr2 encryption modes.

These modes improve the security of full disk encryption by hiding where in the sector changes were performed, thus providing greater security than modes like XTS usually used for this purpose.

Reproducible: Always

Steps to Reproduce:
1. modprobe hctr2
Actual Results:  
modprobe: FATAL: Module hctr2 not found in directory /lib/modules/6.1.38-gentoo-x86_64

Expected Results:  
No error

To achieve the desired results please add the following configuration to your kernel:
CONFIG_CRYPTO_ADIANTUM=m
CONFIG_CRYPTO_HCTR2=m
CONFIG_CRYPTO_CHACHA20=m
CONFIG_CRYPTO_NHPOLY1305=m
CONFIG_CRYPTO_POLYVAL=m

For better performance also add this options on amd64 builds:
CONFIG_CRYPTO_CHACHA20_X86_64=m
CONFIG_CRYPTO_NHPOLY1305_SSE2=m
CONFIG_CRYPTO_NHPOLY1305_AVX2=m
CONFIG_CRYPTO_POLYVAL_CLMUL_NI=m

And these on ARM64 builds:
CONFIG_CRYPTO_CHACHA20_NEON=m
CONFIG_CRYPTO_NHPOLY1305_NEON=m
CONFIG_CRYPTO_POLYVAL_ARM64_CE=m
Comment 1 Larry the Git Cow gentoo-dev 2024-02-27 19:43:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/releng.git/commit/?id=0033362a136d92fd2c2160ff61606ececd1416e5

commit 0033362a136d92fd2c2160ff61606ececd1416e5
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-02-27 19:41:32 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-02-27 19:41:32 +0000

    kconfig/amd64: add new encryption modes
    
    Bug: https://bugs.gentoo.org/911316
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 releases/kconfig/amd64/amd64-6.6.13.config | 6750 ++++++++++++++++++++++++++++
 1 file changed, 6750 insertions(+)
Comment 2 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2024-02-27 23:00:32 UTC
Thanks for the fix Ben!

I haven't had much free time lately but I will test this as soon as I can and report back if there are any issues :)