ML-KEM and X-Wing support
Subsystems (3)
Eric Biggers
maintainercover ML-KEM and X-Wing support
This series applies to v7.1-rc5. It is a proof-of-concept that won't be merged until there is an in-kernel user. Multiple people have been asking about this though, so I wanted to get ahead of the curve and provide something that people can experiment with if needed.
This series adds support for "post-quantum" (i.e. quantum-resistant) key encapsulation to the kernel's crypto library. Specifically this includes ML-KEM-768 and ML-KEM-1024, and the X-Wing hybrid KEM built on top of it. The ML-KEM functions are put in the CRYPTO_INTERNAL namespace, as they will be used only as a component of hybrid KEMs.
It's likely this will eventually be useful for at least one of the in-kernel users of classical key agreement schemes (currently NVMe authentication, Bluetooth, and WireGuard). However, the details of the upgrade to "post-quantum" will be up to the protocol authors in each case. I suggest that X-Wing be chosen when possible.
Eric Biggers (5):
lib/crypto: mlkem: Add ML-KEM-768 and ML-KEM-1024 support lib/crypto: mlkem: Add KUnit tests for ML-KEM lib/crypto: mlkem: Add FIPS 140-3 tests lib/crypto: xwing: Add support for X-Wing KEM lib/crypto: xwing: Add KUnit tests for X-Wing KEM
Documentation/crypto/libcrypto-asymmetric.rst | 27 + Documentation/crypto/libcrypto-signature.rst | 11 - Documentation/crypto/libcrypto.rst | 2 +- include/crypto/mlkem.h | 159 +++ include/crypto/xwing.h | 84 ++ lib/crypto/.kunitconfig | 2 + lib/crypto/Kconfig | 17 + lib/crypto/Makefile | 10 + lib/crypto/fips-mlkem.h | 523 +++++++++ lib/crypto/mlkem.c | 1036 +++++++++++++++++ lib/crypto/tests/Kconfig | 18 + lib/crypto/tests/Makefile | 2 + lib/crypto/tests/mlkem-testvecs.h | 19 + lib/crypto/tests/mlkem_kunit.c | 520 +++++++++ lib/crypto/tests/xwing-testvecs.h | 138 +++ lib/crypto/tests/xwing_kunit.c | 129 ++ lib/crypto/xwing.c | 237 ++++ scripts/crypto/import-mlkem-testvecs.py | 179 +++ scripts/crypto/import-xwing-testvecs.py | 111 ++ 19 files changed, 3212 insertions(+), 12 deletions(-) create mode 100644 Documentation/crypto/libcrypto-asymmetric.rst delete mode 100644 Documentation/crypto/libcrypto-signature.rst create mode 100644 include/crypto/mlkem.h create mode 100644 include/crypto/xwing.h create mode 100644 lib/crypto/fips-mlkem.h create mode 100644 lib/crypto/mlkem.c create mode 100644 lib/crypto/tests/mlkem-testvecs.h create mode 100644 lib/crypto/tests/mlkem_kunit.c create mode 100644 lib/crypto/tests/xwing-testvecs.h create mode 100644 lib/crypto/tests/xwing_kunit.c create mode 100644 lib/crypto/xwing.c create mode 100755 scripts/crypto/import-mlkem-testvecs.py create mode 100755 scripts/crypto/import-xwing-testvecs.py
base-commit: e7ae89a0c97ce2b68b0983cd01eda67cf373517d
Signature · 1 line
2.54.0
Eric Biggers
maintainerPATCH 1/5 lib/crypto: mlkem: Add ML-KEM-768 and ML-KEM-1024 support
Add support for ML-KEM-768 and ML-KEM-1024 to lib/crypto/. This is a proof-of-concept that won't be merged until there's an in-kernel user.
ML-KEM is a "post-quantum" key encapsulation mechanism that is specified in FIPS 203 and is based on CRYSTALS-Kyber. As a key encapsulation mechanism (KEM), it consists of a set of algorithms that can be used to establish a shared secret key over a public channel. As a "post-quantum" algorithm, it's conjectured to be secure even against adversaries in possession of a large-scale quantum computer.
Current users of classical key agreement schemes in the kernel include NVMe in-band authentication, Bluetooth, and WireGuard. It's likely that at least some of these will eventually be upgraded to a hybrid KEM that uses ML-KEM, such as X-Wing which uses X25519 and ML-KEM-768.
This commit just gets things started by implementing ML-KEM-768 and ML-KEM-1024. A later commit adds X-Wing support on top of it.
ML-KEM-512 has been omitted, since it has seen limited adoption and remains somewhat controversial. It wouldn't be that much work to support it too, but there's no clear need to do so yet.
--- Documentation/crypto/libcrypto-asymmetric.rst | 20 + Documentation/crypto/libcrypto-signature.rst | 11 - Documentation/crypto/libcrypto.rst | 2 +- include/crypto/mlkem.h | 151 +++ lib/crypto/Kconfig | 8 + lib/crypto/Makefile | 5 + lib/crypto/mlkem.c | 894 ++++++++++++++++++ 7 files changed, 1079 insertions(+), 12 deletions(-) create mode 100644 Documentation/crypto/libcrypto-asymmetric.rst delete mode 100644 Documentation/crypto/libcrypto-signature.rst create mode 100644 include/crypto/mlkem.h create mode 100644 lib/crypto/mlkem.c
Documentation/crypto/libcrypto-asymmetric.rst new file +20 -0
@@ -0,0 +1,20 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Asymmetric cryptography +======================= + +ML-DSA +------ + +Support for the ML-DSA digital signature algorithm. + +.. kernel-doc:: include/crypto/mldsa.h + +ML-KEM +------ + +Support for the ML-KEM key encapsulation mechanism. + +This shall be used as part of a hybrid scheme such as X-Wing, not by itself. + +.. kernel-doc:: include/crypto/mlkem.h
Documentation/crypto/libcrypto-signature.rst deleted +0 -11
@@ -1,11 +0,0 @@ -.. SPDX-License-Identifier: GPL-2.0-or-later - -Digital signature algorithms -============================ - -ML-DSA ------- - -Support for the ML-DSA digital signature algorithm. - -.. kernel-doc:: include/crypto/mldsa.h
Documentation/crypto/libcrypto.rst +1 -1
@@ -156,10 +156,10 @@ API documentation ================= .. toctree:: :maxdepth: 2 + libcrypto-asymmetric libcrypto-blockcipher libcrypto-hash - libcrypto-signature libcrypto-utils sha3
include/crypto/mlkem.h new file +151 -0
151 lines not on this page · raw message
lib/crypto/Kconfig +8 -0
@@ -141,10 +141,18 @@ config CRYPTO_LIB_MLDSA select CRYPTO_LIB_SHA3 help The ML-DSA library functions. Select this if your module uses any of the functions from <crypto/mldsa.h>. +config CRYPTO_LIB_MLKEM + tristate + select CRYPTO_LIB_SHA3 + select CRYPTO_LIB_UTILS + help + The ML-KEM library functions. Select this if your module uses any of + the functions from <crypto/mlkem.h>. + config CRYPTO_LIB_NH tristate help Implementation of the NH almost-universal hash function, specifically the variant of NH used in Adiantum.
lib/crypto/Makefile +5 -0
@@ -197,10 +197,15 @@ endif # CONFIG_CRYPTO_LIB_MD5_ARCH obj-$(CONFIG_CRYPTO_LIB_MLDSA) += libmldsa.o libmldsa-y := mldsa.o ################################################################################ +obj-$(CONFIG_CRYPTO_LIB_MLKEM) += libmlkem.o +libmlkem-y := mlkem.o + +################################################################################ + obj-$(CONFIG_CRYPTO_LIB_NH) += libnh.o libnh-y := nh.o ifeq ($(CONFIG_CRYPTO_LIB_NH_ARCH),y) CFLAGS_nh.o += -I$(src)/$(SRCARCH) libnh-$(CONFIG_ARM) += arm/nh-neon-core.o
lib/crypto/mlkem.c new file +894 -0
894 lines not on this page · raw message
Signature · 1 line
2.54.0
Eric Biggers
maintainerPATCH 2/5 lib/crypto: mlkem: Add KUnit tests for ML-KEM
In reply to Eric BiggersAdd a KUnit test suite for ML-KEM.
For each supported ML-KEM parameter set, it includes:
- Test key generation, encapsulation, and decapsulation against the first 1000 test vectors from the reference implementation
- Test encapsulation/decapsulation round trips
- Test validation of malformed keys
- Test that every byte of the ciphertext is validated
- Test the reduce_once(), reduce(), compress_d(), and decompress_d() functions with all allowed inputs
- Benchmark key generation, encapsulation, and decapsulation
--- include/crypto/mlkem.h | 8 + lib/crypto/.kunitconfig | 1 + lib/crypto/mlkem.c | 27 ++ lib/crypto/tests/Kconfig | 9 + lib/crypto/tests/Makefile | 1 + lib/crypto/tests/mlkem-testvecs.h | 19 + lib/crypto/tests/mlkem_kunit.c | 520 ++++++++++++++++++++++++ scripts/crypto/import-mlkem-testvecs.py | 117 ++++++ 8 files changed, 702 insertions(+) create mode 100644 lib/crypto/tests/mlkem-testvecs.h create mode 100644 lib/crypto/tests/mlkem_kunit.c create mode 100755 scripts/crypto/import-mlkem-testvecs.py
include/crypto/mlkem.h +8 -0
@@ -146,6 +146,14 @@ int mlkem1024_keygen_internal(u8 pk[MLKEM1024_PUBLIC_KEY_BYTES],int mlkem1024_encaps_internal (u8 ct[MLKEM1024_CIPHERTEXT_BYTES ],u8 ss[MLKEM_SHARED_SECRET_BYTES ],const u8 pk[MLKEM1024_PUBLIC_KEY_BYTES ],const u8 eseed[MLKEM_ESEED_BYTES ]); +#if IS_ENABLED (CONFIG_CRYPTO_LIB_MLKEM_KUNIT_TEST ) +/* Functions exported for KUnit testing only */ +u16 mlkem_reduce_once (u16 x); +u16 mlkem_reduce (u32 x); +u16 mlkem_compress_d (u16 x,int d); +u16 mlkem_decompress_d (u16 x,int d); +#endif +#endif /* _CRYPTO_MLKEM_H */
lib/crypto/.kunitconfig +1 -0
@@ -8,10 +8,11 @@ CONFIG_CRYPTO_LIB_BLAKE2S_KUNIT_TEST=y CONFIG_CRYPTO_LIB_CHACHA20POLY1305_KUNIT_TEST=y CONFIG_CRYPTO_LIB_CURVE25519_KUNIT_TEST=y CONFIG_CRYPTO_LIB_GHASH_KUNIT_TEST=y CONFIG_CRYPTO_LIB_MD5_KUNIT_TEST=y CONFIG_CRYPTO_LIB_MLDSA_KUNIT_TEST=y +CONFIG_CRYPTO_LIB_MLKEM_KUNIT_TEST=y CONFIG_CRYPTO_LIB_NH_KUNIT_TEST=y CONFIG_CRYPTO_LIB_POLY1305_KUNIT_TEST=y CONFIG_CRYPTO_LIB_POLYVAL_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SHA1_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SHA256_KUNIT_TEST=y
lib/crypto/mlkem.c +27 -0
@@ -8,10 +8,11 @@*/ #include <crypto/mlkem.h> #include <crypto/sha3.h> #include <crypto/utils.h> +#include <kunit/visibility.h> #include <linux/export.h> #include <linux/module.h> #include <linux/random.h> #include <linux/slab.h> #include <linux/string.h>
@@ -888,7 +889,33 @@ int mlkem1024_decaps(u8 ss[MLKEM_SHARED_SECRET_BYTES], {return mlkem_decaps (ss, ct, sk, &mlkem1024); }EXPORT_SYMBOL_NS_GPL (mlkem1024_decaps,"CRYPTO_INTERNAL" ); +#if IS_ENABLED (CONFIG_CRYPTO_LIB_MLKEM_KUNIT_TEST ) +u16 mlkem_reduce_once (u16 x) +{ +return reduce_once (x); +} +EXPORT_SYMBOL_IF_KUNIT (mlkem_reduce_once); + +u16 mlkem_reduce (u32 x) +{ +return reduce (x); +} +EXPORT_SYMBOL_IF_KUNIT (mlkem_reduce); + +u16 mlkem_compress_d (u16 x,int d) +{ +return compress_d (x, d); +} +EXPORT_SYMBOL_IF_KUNIT (mlkem_compress_d); + +u16 mlkem_decompress_d (u16 x,int d) +{ +return decompress_d (x, d); +} +EXPORT_SYMBOL_IF_KUNIT (mlkem_decompress_d); +#endif /* CONFIG_CRYPTO_LIB_MLKEM_KUNIT_TEST */ +MODULE_DESCRIPTION ("ML-KEM (Module-Lattice-Based Key Encapsulation Mechanism)" );MODULE_LICENSE ("GPL" );
lib/crypto/tests/Kconfig +9 -0
@@ -67,10 +67,18 @@ config CRYPTO_LIB_MLDSA_KUNIT_TEST default KUNIT_ALL_TESTS select CRYPTO_LIB_BENCHMARK_VISIBLE help KUnit tests for the ML-DSA digital signature algorithm. +config CRYPTO_LIB_MLKEM_KUNIT_TEST + tristate "KUnit tests for ML-KEM" if !KUNIT_ALL_TESTS + depends on KUNIT && CRYPTO_LIB_MLKEM + default KUNIT_ALL_TESTS + select CRYPTO_LIB_BENCHMARK_VISIBLE + help + KUnit tests for the ML-KEM key encapsulation mechanism. + config CRYPTO_LIB_NH_KUNIT_TEST tristate "KUnit tests for NH" if !KUNIT_ALL_TESTS depends on KUNIT && CRYPTO_LIB_NH default KUNIT_ALL_TESTS help
@@ -149,10 +157,11 @@ config CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT select CRYPTO_LIB_CHACHA20POLY1305 select CRYPTO_LIB_CURVE25519 select CRYPTO_LIB_GF128HASH select CRYPTO_LIB_MD5 select CRYPTO_LIB_MLDSA + select CRYPTO_LIB_MLKEM select CRYPTO_LIB_NH select CRYPTO_LIB_POLY1305 select CRYPTO_LIB_SHA1 select CRYPTO_LIB_SHA256 select CRYPTO_LIB_SHA512
lib/crypto/tests/Makefile +1 -0
@@ -6,10 +6,11 @@ obj-$(CONFIG_CRYPTO_LIB_BLAKE2S_KUNIT_TEST) += blake2s_kunit.o obj-$(CONFIG_CRYPTO_LIB_CHACHA20POLY1305_KUNIT_TEST) += chacha20poly1305_kunit.o obj-$(CONFIG_CRYPTO_LIB_CURVE25519_KUNIT_TEST) += curve25519_kunit.o obj-$(CONFIG_CRYPTO_LIB_GHASH_KUNIT_TEST) += ghash_kunit.o obj-$(CONFIG_CRYPTO_LIB_MD5_KUNIT_TEST) += md5_kunit.o obj-$(CONFIG_CRYPTO_LIB_MLDSA_KUNIT_TEST) += mldsa_kunit.o +obj-$(CONFIG_CRYPTO_LIB_MLKEM_KUNIT_TEST) += mlkem_kunit.o obj-$(CONFIG_CRYPTO_LIB_NH_KUNIT_TEST) += nh_kunit.o obj-$(CONFIG_CRYPTO_LIB_POLY1305_KUNIT_TEST) += poly1305_kunit.o obj-$(CONFIG_CRYPTO_LIB_POLYVAL_KUNIT_TEST) += polyval_kunit.o obj-$(CONFIG_CRYPTO_LIB_SHA1_KUNIT_TEST) += sha1_kunit.o obj-$(CONFIG_CRYPTO_LIB_SHA256_KUNIT_TEST) += sha224_kunit.o sha256_kunit.o
lib/crypto/tests/mlkem-testvecs.h new file +19 -0
@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* This file was generated by import-mlkem-testvecs.py */ +/* clang-format off */ + +#define MLKEM768_NUM_TESTVECS 1000 + +static const u8 mlkem768_hash[32 ] = { +0x81 ,0xa6 ,0x72 ,0x68 ,0x1c ,0x57 ,0xaf ,0xc5 ,0x1b ,0xdb ,0xc2 ,0xfc , +0x08 ,0xc0 ,0x4a ,0xbe ,0x01 ,0xd9 ,0xad ,0x5f ,0x1c ,0x77 ,0x89 ,0xa4 , +0xa5 ,0x98 ,0xdf ,0x9d ,0xb2 ,0x91 ,0xa6 ,0x56 , +}; + +#define MLKEM1024_NUM_TESTVECS 1000 + +static const u8 mlkem1024_hash[32 ] = { +0x64 ,0x4e ,0x58 ,0xca ,0x6c ,0xf9 ,0xb6 ,0x08 ,0x07 ,0x50 ,0xa8 ,0x76 , +0xe6 ,0xae ,0xf5 ,0xe0 ,0x44 ,0xce ,0xe1 ,0xd9 ,0x42 ,0x36 ,0xb6 ,0xc1 , +0x14 ,0xc7 ,0x5f ,0x2c ,0x8b ,0xd7 ,0x73 ,0x77 , +};
lib/crypto/tests/mlkem_kunit.c new file +520 -0
520 lines not on this page · raw message
scripts/crypto/import-mlkem-testvecs.py new file +117 -0
117 lines not on this page · raw message
Signature · 1 line
2.54.0
Eric Biggers
maintainerPATCH 3/5 lib/crypto: mlkem: Add FIPS 140-3 tests
In reply to Eric BiggersAdd the ML-KEM self-tests required by FIPS 140-3:
- Pairwise Consistency Test (PCT) at KeyGen time
- Cryptographic Algorithm Self-Test (CAST) at initialization time
As with the other crypto algorithms, these are implemented separately from the KUnit test suite, due to the very different requirements.
--- lib/crypto/fips-mlkem.h | 523 ++++++++++++++++++++++++ lib/crypto/mlkem.c | 115 ++++++ scripts/crypto/import-mlkem-testvecs.py | 62 +++ 3 files changed, 700 insertions(+) create mode 100644 lib/crypto/fips-mlkem.h
lib/crypto/fips-mlkem.h new file +523 -0
@@ -0,0 +1,523 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* This file was generated by import-mlkem-testvecs.py */ +/* clang-format off */ + +static const u8 fips_test_mlkem768_seed[MLKEM_SEED_BYTES ]__initconst __maybe_unused = { +0x7f ,0x9c ,0x2b ,0xa4 ,0xe8 ,0x8f ,0x82 ,0x7d ,0x61 ,0x60 ,0x45 ,0x50 , +0x76 ,0x05 ,0x85 ,0x3e ,0xd7 ,0x3b ,0x80 ,0x93 ,0xf6 ,0xef ,0xbc ,0x88 , +0xeb ,0x1a ,0x6e ,0xac ,0xfa ,0x66 ,0xef ,0x26 ,0x3c ,0xb1 ,0xee ,0xa9 , +0x88 ,0x00 ,0x4b ,0x93 ,0x10 ,0x3c ,0xfb ,0x0a ,0xee ,0xfd ,0x2a ,0x68 , +0x6e ,0x01 ,0xfa ,0x4a ,0x58 ,0xe8 ,0xa3 ,0x63 ,0x9c ,0xa8 ,0xa1 ,0xe3 , +0xf9 ,0xae ,0x57 ,0xe2 , +}; + +static const u8 fips_test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68 ,0x49 ,0xfb , +0x32 ,0xf2 ,0x11 ,0xa4 ,0xc8 ,0x7e ,0x16 ,0xbc ,0xce ,0x0c ,0x41 ,0x24 , +0x0a ,0x22 ,0x3b ,0xa6 ,0xd6 ,0x9e ,0x0c ,0x51 ,0x56 ,0x9f ,0x73 ,0xcb , +0x10 ,0x7e ,0xad ,0x84 ,0xd1 ,0x4d ,0xee ,0x92 ,0x70 ,0x2e ,0x3a ,0x95 , +0xeb ,0x84 ,0x4c ,0x71 ,0x6a ,0xec ,0x98 ,0x29 ,0xd0 ,0x65 ,0x91 ,0xeb , +0xd2 ,0x50 ,0x1a ,0x32 ,0x83 ,0xcc ,0x0f ,0xfc ,0x0f ,0xdc ,0xc0 ,0x31 , +0xfe ,0x8d ,0x86 ,0x5e ,0x77 ,0xfa ,0xe5 ,0xd6 ,0xbb ,0x73 ,0x81 ,0x5d , +0x9a ,0xe3 ,0x76 ,0x00 ,0x6d ,0x0a ,0xe3 ,0x20 , +}; + +static const u8 fips_test_mlkem768_ss_rejected[MLKEM_SHARED_SECRET_BYTES ]__initconst __maybe_unused = { +0xb8 ,0x77 ,0xda ,0x79 ,0x2d ,0x89 ,0xf2 ,0x80 ,0x49 ,0xb5 ,0x90 ,0x12 , +0x16 ,0x01 ,0x20 ,0x2d ,0x2b ,0xc8 ,0xf5 ,0xf1 ,0xaf ,0x83 ,0x82 ,0xbf , +0x4f ,0x39 ,0x41 ,0x05 ,0x0d ,0xd5 ,0x17 ,0x2b , +};
lib/crypto/mlkem.c +115 -0
160 lines not on this page · raw message
scripts/crypto/import-mlkem-testvecs.py +62 -0
97 lines not on this page · raw message
Signature · 1 line
2.54.0
Eric Biggers
maintainerPATCH 4/5 lib/crypto: xwing: Add support for X-Wing KEM
In reply to Eric BiggersAdd support for X-Wing, a general-purpose post-quantum/traditional hybrid key encapsulation mechanism using X25519 and ML-KEM-768. X-Wing is the recommended KEM for new applications. X-Wing is specified at
https://datatracker.ietf.org/doc/html/draft-connolly-cfrg-xwing-kem-10
This is a proof-of-concept that won't be merged until there's an in-kernel user. Potential users include in-kernel users of classical key agreement schemes (Bluetooth, NVMe auth, WireGuard).
--- Documentation/crypto/libcrypto-asymmetric.rst | 7 + include/crypto/xwing.h | 84 +++++++ lib/crypto/Kconfig | 9 + lib/crypto/Makefile | 5 + lib/crypto/xwing.c | 237 ++++++++++++++++++ 5 files changed, 342 insertions(+) create mode 100644 include/crypto/xwing.h create mode 100644 lib/crypto/xwing.c
Documentation/crypto/libcrypto-asymmetric.rst +7 -0
@@ -16,5 +16,12 @@ ML-KEM Support for the ML-KEM key encapsulation mechanism. This shall be used as part of a hybrid scheme such as X-Wing, not by itself. .. kernel-doc:: include/crypto/mlkem.h + +X-Wing +------ + +Support for the X-Wing key encapsulation mechanism. + +.. kernel-doc:: include/crypto/xwing.h
include/crypto/xwing.h new file +84 -0
84 lines not on this page · raw message
lib/crypto/Kconfig +9 -0
@@ -285,5 +285,14 @@ config CRYPTO_LIB_SM3_ARCH depends on CRYPTO_LIB_SM3 && !UML default y if ARM64 default y if RISCV && 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \ RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS default y if X86_64 + +config CRYPTO_LIB_XWING + tristate + select CRYPTO_LIB_CURVE25519 + select CRYPTO_LIB_MLKEM + select CRYPTO_LIB_SHA3 + help + The X-Wing library functions. Select this if your module uses any of + the functions from <crypto/xwing.h>.
lib/crypto/Makefile +5 -0
@@ -384,10 +384,15 @@ libsm3-$(CONFIG_RISCV) += riscv/sm3-riscv64-zvksh-zvkb.o libsm3-$(CONFIG_X86) += x86/sm3-avx-asm_64.o endif # CONFIG_CRYPTO_LIB_SM3_ARCH ################################################################################ +obj-$(CONFIG_CRYPTO_LIB_XWING) += libxwing.o +libxwing-y := xwing.o + +################################################################################ + obj-$(CONFIG_MPILIB) += mpi/ obj-$(CONFIG_CRYPTO_SELFTESTS_FULL) += simd.o # clean-files must be defined unconditionally
lib/crypto/xwing.c new file +237 -0
237 lines not on this page · raw message
Signature · 1 line
2.54.0
Eric Biggers
maintainerPATCH 5/5 lib/crypto: xwing: Add KUnit tests for X-Wing KEM
In reply to Eric BiggersAdd a KUnit test suite for the X-Wing key encapsulation mechanism.
This includes:
- Test key generation, encapsulation, and decapsulation against the test vectors from the X-Wing specification
- Test encapsulation/decapsulation round trips
- Benchmark key generation, encapsulation, and decapsulation
This isn't intended to fully test the underlying KEMs. Those already have their own KUnit tests.
--- lib/crypto/.kunitconfig | 1 + lib/crypto/tests/Kconfig | 9 ++ lib/crypto/tests/Makefile | 1 + lib/crypto/tests/xwing-testvecs.h | 138 ++++++++++++++++++++++++ lib/crypto/tests/xwing_kunit.c | 129 ++++++++++++++++++++++ scripts/crypto/import-xwing-testvecs.py | 111 +++++++++++++++++++ 6 files changed, 389 insertions(+) create mode 100644 lib/crypto/tests/xwing-testvecs.h create mode 100644 lib/crypto/tests/xwing_kunit.c create mode 100755 scripts/crypto/import-xwing-testvecs.py
lib/crypto/.kunitconfig +1 -0
@@ -17,5 +17,6 @@ CONFIG_CRYPTO_LIB_POLYVAL_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SHA1_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SHA256_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SHA512_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SHA3_KUNIT_TEST=y CONFIG_CRYPTO_LIB_SM3_KUNIT_TEST=y +CONFIG_CRYPTO_LIB_XWING_KUNIT_TEST=y
lib/crypto/tests/Kconfig +9 -0
@@ -147,10 +147,18 @@ config CRYPTO_LIB_SM3_KUNIT_TEST default KUNIT_ALL_TESTS select CRYPTO_LIB_BENCHMARK_VISIBLE help KUnit tests for the SM3 cryptographic hash function. +config CRYPTO_LIB_XWING_KUNIT_TEST + tristate "KUnit tests for X-Wing" if !KUNIT_ALL_TESTS + depends on KUNIT && CRYPTO_LIB_XWING + default KUNIT_ALL_TESTS + select CRYPTO_LIB_BENCHMARK_VISIBLE + help + KUnit tests for the X-Wing key encapsulation mechanism. + config CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT tristate "Enable all crypto library code for KUnit tests" depends on KUNIT select CRYPTO_LIB_AES_CBC_MACS select CRYPTO_LIB_BLAKE2B
@@ -165,10 +173,11 @@ config CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT select CRYPTO_LIB_SHA1 select CRYPTO_LIB_SHA256 select CRYPTO_LIB_SHA512 select CRYPTO_LIB_SHA3 select CRYPTO_LIB_SM3 + select CRYPTO_LIB_XWING help Enable all the crypto library code that has KUnit tests. Enable this only if you'd like to test all the crypto library code, even code that wouldn't otherwise need to be built.
lib/crypto/tests/Makefile +1 -0
@@ -15,5 +15,6 @@ obj-$(CONFIG_CRYPTO_LIB_POLYVAL_KUNIT_TEST) += polyval_kunit.o obj-$(CONFIG_CRYPTO_LIB_SHA1_KUNIT_TEST) += sha1_kunit.o obj-$(CONFIG_CRYPTO_LIB_SHA256_KUNIT_TEST) += sha224_kunit.o sha256_kunit.o obj-$(CONFIG_CRYPTO_LIB_SHA512_KUNIT_TEST) += sha384_kunit.o sha512_kunit.o obj-$(CONFIG_CRYPTO_LIB_SHA3_KUNIT_TEST) += sha3_kunit.o obj-$(CONFIG_CRYPTO_LIB_SM3_KUNIT_TEST) += sm3_kunit.o +obj-$(CONFIG_CRYPTO_LIB_XWING_KUNIT_TEST) += xwing_kunit.o
lib/crypto/tests/xwing-testvecs.h new file +138 -0
138 lines not on this page · raw message
lib/crypto/tests/xwing_kunit.c new file +129 -0
129 lines not on this page · raw message
scripts/crypto/import-xwing-testvecs.py new file +111 -0
111 lines not on this page · raw message
Signature · 1 line
2.54.0