This is the higher-level, more Rust-friendly interface.
The features of this crate can modify what is compiled in from the PSA Crypto specification:
operations
: everything is included. Thepsa-crypto-sys
crate statically links by default Mbed Crypto. See the documentation of that crate to see how to modify the linking options. This feature is activated by default.interface
: only the abstraction over the PSA Crypto interface (types, helper methods) are included. TheMBEDTLS_INCLUDE_DIR
environment variable is needed to produce Rust shims around PSA Crypto macros.- without any of the above: only the specification-defined parts are included.