The library provides software crypto acceleration primarily targeting packet processing applications. It can be used for applications such as: IPsec, TLS, Wireless (RAN) and Cable. It also provides post-quantum cryptography (PQC) algorithms for applications migrating to quantum-resistant key establishment and digital signatures.
The library is hosted on GitHub and is used as software crypto provider in DPDK , Intel(R) QAT Engine and FD.io .
Using crypto interfaces from the above frameworks gives freedom to change providers without subsequent application modifications. The library can also be used directly through its native API.
Key differentiating features:
operation chaining (encryption and authentication)
advanced cryptographic pipelining job manager with scheduling and dispatching functions API hides underlying implementation details from an application
job manager with scheduling and dispatching functions
API hides underlying implementation details from an application
multi-buffer and function stitching innovations
post-quantum cryptography (ML-KEM and ML-DSA) support
low level implementations using latest instruction extensions
Security Considerations & Options for Increased Security
Backwards compatibility
Disclaimer (ZUC, KASUMI, SNOW3G)
Intel Multi-Buffer Crypto for IPsec Library is highly-optimized software implementations of the core cryptographic processing for IPsec, which provides industry-leading performance on a range of Intel(R) Processors.
For information on how the library works, see the Intel White Paper: "Fast Multi-buffer IPsec Implementations on Intel Architecture Processors". Jim Guilford, Sean Gulley, et. al.
The library also provides post-quantum signature support for ML-DSA-44, ML-DSA-65 and ML-DSA-87 (FIPS 204) through the opaque IMB_ML_DSA handle and the imb_ml_dsa_* API, and post-quantum key-encapsulation support for ML-KEM-512, ML-KEM-768 and ML-KEM-1024 (FIPS 203) through the opaque IMB_ML_KEM handle and the imb_ml_kem_* API. The ML-DSA and ML-KEM implementations are derived from OpenSSL and are licensed under the Apache License 2.0 (see LICENSE.OpenSSL). The library as a whole is BSD 3-Clause licensed except where individual files state otherwise; see the Licenses section of CONTRIBUTING for the licensing model (effective SPDX expression: BSD-3-Clause AND Apache-2.0 ).
Table 1. List of supported cipher algorithms and their implementations.
Notes: (1) - Decryption is by8 and encryption is x8. (2) - Single block decryption and encryption. (3) - Decryption is by16 and encryption is x16. (4) - Implementation using GFNI extensions. (5) - Implementation using SM4NI extensions, by16. (6) - Implementation using SM4NI extensions, single block encryption and by16 decryption. (7) - Implementation using SM4NI extensions, by8.
Legend: byY - single buffer Y blocks at a time xY - Y buffers at a time [xyz] - same as xyz implementation return 1
callback(data.phase = IMB_SELF_TEST_PHASE_CORRUPT) return 1: no message corruption return 0: corrupt single bit in the 1st byte
return 1: no message corruption
return 0: corrupt single bit in the 1st byte
callback(data.phase = IMB_SELF_TEST_PHASE_PASS or IMB_SELF_TEST_PHASE_PASS) => return 1
callback(data.phase = IMB_SELF_TEST_PHASE_START, data.type = IMB_SELF_TEST_TYPE_KAT_CIPHER, data.descr = "AES192-CBC") => return 1
... Note that value returned by application self-test callback function only matters in the corrupt phase.
The self-test consists of Cryptographic algorithm test (known answer test) on following types and algorithms:
KAT_AEAD: AES-GCM AES-CCM
KAT_Cipher: AES-CBC AES-CTR AES-ECB AES-CFB TDES-CBC
KAT_Auth: AES-GMAC AES-CMAC SHA1 SHA224 SHA256 SHA384 SHA512 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512 SHA3-224 SHA3-256 SHA3-384 SHA3-512 SHAKE-128 SHAKE-256 HMAC-SHA3-224 HMAC-SHA3-256 HMAC-SHA3-384 HMAC-SHA3-512
KAT_Signature: ML-DSA-44 ML-DSA-65 ML-DSA-87
KAT_KEM: ML-KEM-512 ML-KEM-768 ML-KEM-1024
KAT_Cipher and KAT_AEAD types conduct tests in encrypt and decrypt cipher directions. However, the corrupt callback is made only for the encrypt direction. No callback is made for the decrypt direction at the moment.
Example detection of library self-test completion & error in the application:
Example registration of self-test callback function:
13.DLL Injection Attack
The Windows OS has an insecure predefined order and set of defaults when trying to locate a resource. If the resource location is not specified by the software, an attacker need only place a malicious version in one of the locations Windows will , and it will be loaded instead. Although this weakness can occur with any resource, it is especially common with DLL files.
Applications using intel-ipsec-mb DLL library may need to apply one of the solutions to prevent from DLL injection attack.
Two solutions are available:
Using a Fully Qualified Path is the most secure way to load a DLL
Signature verification of the DLL
Resources and Solution Details
Security remarks section of LoadLibraryEx documentation by Microsoft:
Microsoft Dynamic Link Library Security article:
Hijack Execution Flow: DLL Order Hijacking:
Hijack Execution Flow: DLL Side-Loading:
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
