Hi,
I would like to implement the “Data-at-rest encryption” from toradex :
https://developer.toradex.com/torizon/security/encryption-on-torizon/
as you can see I’m using a “standard” torizon image : 7.0.0-build.1.
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.23-7.0.0-g558ba3740880 #1-Torizon SMP PREEMPT Wed Sep 25 11:25:16 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/4af7c406269eb5dc7b89049a3adfced1ac4641115df55a148cee5387d730bbf1/0 loglevel=8
Distro name: NAME="Torizon OS"
Distro version: VERSION_ID=7.0.0-build.1
Hostname: verdin-imx8mm-xx
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Mini on Verdin Development Board
Toradex version: 0057 V1.1B
Serial number: xx
Processor arch: aarch64
------------------------------------------------------------
while I was reading this article meta-toradex-security/docs/README-encryption.md at scarthgap-7.x.y · toradex/meta-toradex-security · GitHub, I saw that it was possible to use a TPM, which is perfect for me as I have a TPM interfaced in I2C with my SoM.
However, I don’t understand this documentation: meta-toradex-security/docs/README-encryption.md at scarthgap-7.x.y · toradex/meta-toradex-security · GitHub
The chapter we’re interested in “Enabling and configuring encryption” asks you to inherit the “tdx-encrypted” class and add the line to an “OE” configuration file?
I think I’ve understood that I need to build a Torizon OS image from source with the yocto project, but I can’t understand with the documentation you’ve linked to: Build Torizon OS from Source With Yocto Project/OpenEmbedded | Toradex Developer Center
where / in which file I need to inherit the “tdx-encrypted” class?
is It the “conf/local.conf” one ?
Is it just a layer that I need to import into my image and that you’ve already developed (meta-toradex-security)? So I don’t need to touch the Linux kernel variables myself?
Also is this process compatible with the build process using CROPS ? the containerized torizon os build ?
Thank you !