I had an issue building with MBEDTLS_AES_SETKEY_DEC_ALT because key methods in MBEDTLS_CIPHER_MODE_XTS were excluded from the build, yet they are still needed. I am unclear why this dependency exists and feel that the #endif should be moved before the MBEDTLS_CIPHER_MODE_XTS code block....