Hello @Harvey021 ,
I am following your suggestion of using i.MX Encrypted Storage Using CAAM Secure Keys, rev 2.
I am following the document and made the necessary changes in the defconfig file to include CAAM and DM-crypt
# Enable DM-Crypt and its dependencies
CONFIG_BLK_DEV_DM=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD=y
CONFIG_DM_CRYPT=y
CONFIG_DM_MULTIPATH=y
# Enable CAAM black key/blob driver and its dependencies (this is enabled, by default)
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y
I have also added
CONFIG_CRYPTO=y
I have made a build with the suggestions made in the document.
According to section 3.2 of AN12714 rev 2 the first point to make sure that cryptographic transformations using Tagged Key are registered. I am not able to see the tagged key in my build.
I do not get any response to this command : cat /proc/crypto | grep -B1 -A2 tk
I am attaching my defconfig for your reference.
Also the document explains about creating a secure volume through image file and then mounting it. But how can I secure an already mounted volume. I want my partitions to be already encrypted before the mounting process during device startup. How can I achieve it ?