Hello @jrgert
The STM32L4 provides hardware isolation thanks to the firewall.
The Secure Engine is running inside this secure enclave.
The Secure Engine was design to enable easy extension with user defined services.
So, it is possible to add specific crypto services inside the SE.
The advantage is that you benefit from the isolation and possibly share the crypto library services if using the same.
The drawback is that services and possible keys would be frozen in the SBSFU without ability to update.
Regarding the implementation, be careful that the X-CUBE-CRYPTOLIB provided by ST (link in @Pavel A. post) you will get a new version 4.x that is not compatible with the one used in SBSFU that is 3.x
There is no issue if you do everything in your application.
But if you want to isolate your crypto services inside the secure engine, it would preferable to get the same version. If this is the case, please drop me a private message.
Best regards
Jocelyn