[Galaxy Tab S2 Android Development] retiredtab:
Encryption in 18.1 for exynos5433 was first reported broken at post #113 on Sept 13, 2023

https://xdaforums.com/t/unofficial-...t810-mar-10-2024.4430349/page-6#post-88999301

I speculated at that time that our kernel (3.10.9) was too old to work properly with it. However, it was then discovered that 19.1 and FDE (full disk encryption) works fine with the exact same kernel.

For 18.1, I used the 3.10.108 test kernel and tried FDE. It has the same problem as the older 3.10.9 kernel with it NOT working.

So I made an "eng" build and saw the same logcat messages for both 3.10.9 and 3.10.108 kernel.

04-18 21:02:08.702 0 0 E [c0] alg: skcipher: Failed to load transform for cbc(cast6): -2
04-18 21:02:08.703 0 0 E [c0] alg: skcipher: Failed to load transform for ctr(cast6): -2
04-18 21:02:08.704 0 0 E [c0] alg: skcipher: Failed to load transform for ctr(cast6): -2
04-18 21:02:08.705 0 0 E [c3] alg: skcipher: Failed to load transform for lrw(cast6): -2
04-18 21:02:08.707 0 0 E [c3] alg: skcipher: Failed to load transform for lrw(cast6): -2
04-18 21:02:08.711 0 0 E [c3] alg: skcipher: Failed to load transform for xts(cast6): -2
04-18 21:02:08.711 0 0 E [c3] alg: skcipher: Failed to load transform for xts(cast6): -2
04-18 21:02:08.712 0 0 E [c3] alg: hash: Failed to load transform for michael_mic: -2
04-18 21:02:08.712 0 0 E [c3] alg: hash: Failed to load transform for michael_mic: -2
04-18 21:02:08.713 0 0 E [c3] alg: skcipher: Failed to load transform for ecb(tea): -2
04-18 21:02:08.714 0 0 E [c3] alg: skcipher: Failed to load transform for ecb(tea): -2
04-18 21:02:08.714 0 0 E [c3] alg: skcipher: Failed to load transform for ecb(xtea): -2
04-18 21:02:08.715 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(xtea): -2
04-18 21:02:08.717 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(khazad): -2
04-18 21:02:08.717 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(khazad): -2
04-18 21:02:08.717 0 0 E [c0] alg: hash: Failed to load transform for wp512: -2
04-18 21:02:08.717 0 0 E [c0] alg: hash: Failed to load transform for wp512: -2
04-18 21:02:08.717 0 0 E [c0] alg: hash: Failed to load transform for wp384: -2
04-18 21:02:08.717 0 0 E [c0] alg: hash: Failed to load transform for wp384: -2
04-18 21:02:08.717 0 0 E [c0] alg: hash: Failed to load transform for wp256: -2
04-18 21:02:08.717 0 0 E [c0] alg: hash: Failed to load transform for wp256: -2
04-18 21:02:08.717 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(tnepres): -2
04-18 21:02:08.718 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(tnepres): -2
04-18 21:02:08.719 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(anubis): -2
04-18 21:02:08.719 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(anubis): -2
04-18 21:02:08.720 0 0 E [c2] alg: skcipher: Failed to load transform for cbc(anubis): -2
04-18 21:02:08.721 0 0 E [c2] alg: skcipher: Failed to load transform for cbc(anubis): -2
04-18 21:02:08.721 0 0 E [c2] alg: hash: Failed to load transform for tgr192: -2
04-18 21:02:08.721 0 0 E [c2] alg: hash: Failed to load transform for tgr192: -2
04-18 21:02:08.721 0 0 E [c2] alg: hash: Failed to load transform for tgr160: -2
04-18 21:02:08.721 0 0 E [c2] alg: hash: Failed to load transform for tgr160: -2
04-18 21:02:08.721 0 0 E [c2] alg: hash: Failed to load transform for tgr128: -2
04-18 21:02:08.721 0 0 E [c2] alg: hash: Failed to load transform for tgr128: -2
04-18 21:02:08.721 0 0 E [c3] alg: skcipher: Failed to load transform for ecb(xeta): -2
04-18 21:02:08.721 0 0 E [c2] alg: skcipher: Failed to load transform for ecb(xeta): -2
04-18 21:02:08.722 0 0 E [c3] alg: skcipher: Failed to load transform for pcbc(fcrypt): -2
04-18 21:02:08.722 0 0 E [c2] alg: skcipher: Failed to load transform for pcbc(fcrypt): -2
04-18 21:02:08.722 0 0 E [c2] alg: skcipher: Failed to load transform for ecb(camellia): -2
04-18 21:02:08.726 0 0 E [c2] alg: skcipher: Failed to load transform for ecb(camellia): -2
04-18 21:02:08.735 0 0 E [c2] alg: skcipher: Failed to load transform for cbc(camellia): -2
04-18 21:02:08.739 0 0 E [c4] alg: skcipher: Failed to load transform for cbc(camellia): -2
04-18 21:02:08.740 0 0 E [c2] alg: skcipher: Failed to load transform for ctr(camellia): -2
04-18 21:02:08.740 0 0 E [c2] alg: skcipher: Failed to load transform for ctr(camellia): -2
04-18 21:02:08.744 0 0 E [c2] alg: skcipher: Failed to load transform for lrw(camellia): -2
04-18 21:02:08.745 0 0 E [c4] alg: skcipher: Failed to load transform for lrw(camellia): -2
04-18 21:02:08.746 0 0 E [c0] alg: skcipher: Failed to load transform for xts(camellia): -2
04-18 21:02:08.747 0 0 E [c4] alg: skcipher: Failed to load transform for xts(camellia): -2
04-18 21:02:08.747 0 0 E [c4] alg: skcipher: Failed to load transform for salsa20: -2
04-18 21:02:08.747 0 0 E [c4] alg: skcipher: Failed to load transform for salsa20: -2
04-18 21:02:08.756 0 0 E [c0] alg: skcipher: Failed to load transform for cts(cbc(aes)): -2
04-18 21:02:08.756 0 0 E [c2] alg: skcipher: Failed to load transform for cts(cbc(aes)): -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd128: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd128: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd160: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd160: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd256: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd256: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd320: -2
04-18 21:02:08.756 0 0 E [c2] alg: hash: Failed to load transform for rmd320: -2
04-18 21:02:08.757 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(seed): -2
04-18 21:02:08.757 0 0 E [c0] alg: skcipher: Failed to load transform for ecb(seed): -2
04-18 21:02:08.757 0 0 E [c0] alg: pcomp: Failed to load transform for zlib: -2
04-18 21:02:08.757 0 0 E [c0] alg: pcomp: Failed to load transform for zlib: -2
04-18 21:02:08.766 0 0 E [c7] alg: hash: Failed to load transform for xcbc(aes): -2
04-18 21:02:08.766 0 0 E [c7] alg: hash: Failed to load transform for xcbc(aes): -2
04-18 21:02:08.767 0 0 E [c7] alg: hash: Failed to load transform for hmac(rmd128): -2
04-18 21:02:08.767 0 0 E [c7] alg: hash: Failed to load transform for hmac(rmd128): -2
04-18 21:02:08.767 0 0 E [c7] alg: hash: Failed to load transform for hmac(rmd160): -2
04-18 21:02:08.767 0 0 E [c7] alg: hash: Failed to load transform for hmac(rmd160): -2
04-18 21:02:08.767 0 0 E [c7] alg: hash: Failed to load transform for vmac(aes): -2
04-18 21:02:08.768 0 0 E [c7] alg: hash: Failed to load transform for vmac(aes): -2
04-18 21:02:08.768 0 0 E [c7] alg: hash: Failed to load transform for hmac(crc32): -2
04-18 21:02:08.768 0 0 E [c7] alg: hash: Failed to load transform for hmac(crc32): -2
04-18 21:02:08.768 0 0 E [c7] alg: cprng: Failed to load transform for ansi_cprng: -2
04-18 21:02:08.768 0 0 E [c7] alg: cprng: Failed to load transform for ansi_cprng: -2
04-18 21:02:08.780 0 0 E [c4] alg: hash: Failed to load transform for cmac(aes): -2
04-18 21:02:08.780 0 0 E [c4] alg: hash: Failed to load transform for cmac(aes): -2
04-18 21:02:08.783 0 0 E [c4] alg: hash: Failed to load transform for cmac(des3_ede): -2
04-18 21:02:08.783 0 0 E [c4] alg: hash: Failed to load transform for cmac(des3_ede): -2
04-18 21:02:08.783 0 0 E [c4] tcrypt: one or more tests failed!

The above message comes from kernel/samsung/universal5433/crypto/testmgr.c.

I also made the OS boot into SElinux permissive mode in case I was missing a sepolicy, but that did NOT solve the FDE problem.

So at this point, I don't why FDE is failing above and I have no more ideas to try.

I don't know why FDE works in 19.1 either.