SPDK does not implement any cryptography itself, and for use cases requiring cryptographic functions it relies on external components. Therefore, SPDK alone has not acquired any FIPS (Federal Information Processing Standards) certification, but a reasonable effort has been made to check, if SPDK can be a part of a FIPS certified system as one of the components. Any FIPS certification of such a system, however, is a responsibility of the system integrator or builder. The dependencies are:
Intel QAT driver, NVIDIA MLX5 driver and intel-ipsec-mb are delivered by DPDK as Crypto Device Drivers. MLX5 usage is supported for both DPDK and SPDK.
SPDK can be compatible with FIPS, if all enabled dependencies are operating in a FIPS approved state.
To ensure the system using SPDK can apply for FIPS certification, please use FIPS certified versions of DPDK and intel-ipsec-mb - you may include a custom DPDK version via --with-dpdk
configuration flag. Please also make sure, that FIPS-certified hardware and firmware is used (e.g. Intel QAT).
The isa-l-crypto library has not yet acquired the FIPS certification. In order for SPDK to be included in a FIPS certified system, please do not use the software Acceleration Framework module for encryption/decryption.
SPDK uses various functions from OpenSSL library to perform tasks like key derivation in NVMe TCP and TLS handshake in socket module. OpenSSL delivers code implementations via providers.
One of such providers delivers Federal Information Processing Standards (FIPS) compliant functions, called FIPS provider, and if set up correctly, will include only function implementations that fall under FIPS 140-2.
SPDK provides a test in test/nvmf/fips/fips.sh
that includes OpenSSL configuration via OPENSSL_CONF. As seen in that test, the configuration will differ between some operating systems (see Fedora38 for example). Correctly configuring OpenSSL FIPS is user responsibility (see this link for reference on how to enable FIPS provider). OpenSSL documentation states that "It is undefined
which implementation of an algorithm will be used if multiple implementations are available", so we strongly recommend to use FIPS + base provider combination exclusively to ensure FIPS compliance (OpenSSL doc).
To ensure the system using SPDK can apply for FIPS certification, please use OpenSSL versions 3.0.0+ only. In terms of generation and handling of the pre-shared keys for TLS, it is recommended to ensure compliance with FIPS standards – in particular: NIST Special Publication 800-133, Revision 2.
Below are RPCs that can be sent to SPDK application to configure FIPS compliant cryptography. See test/bdev/blockdev.sh
for example usage and JSON-RPC for explanations of RPC commands.
Configuration of dpdk_cryptodev in acceleration framework should first initialize the module, then select cryptodev device (crypto_aesni_mb, crypto_qat or mlx5_pci) and finally assign the dpdk_cryptodev driver to specific operations:
MLX5 configuration, which depends on 3rd party FIPS-certified hardware, should contain only module initialization ad operation assignment:
It is recommended to use the 256 bit keys with symmetric encryption algorithms. For AES-XTS specifically, the supplied Key1 must be different from Key2.