Directory Files
.. 175
File Size
.aes_cbc_macs_kunit.ko.cmd 331 B
.aes_cbc_macs_kunit.mod.cmd 183 B
.aes_cbc_macs_kunit.mod.o.cmd 50 kB
.aes_cbc_macs_kunit.o.cmd 51 kB
.aes_ccm_kunit.ko.cmd 311 B
.aes_ccm_kunit.mod.cmd 168 B
.aes_ccm_kunit.mod.o.cmd 50 kB
.aes_ccm_kunit.o.cmd 51 kB
.aes_gcm_kunit.ko.cmd 311 B
.aes_gcm_kunit.mod.cmd 168 B
.aes_gcm_kunit.mod.o.cmd 50 kB
.aes_gcm_kunit.o.cmd 51 kB
.blake2b_kunit.ko.cmd 311 B
.blake2b_kunit.mod.cmd 168 B
.blake2b_kunit.mod.o.cmd 50 kB
.blake2b_kunit.o.cmd 51 kB
.blake2s_kunit.ko.cmd 311 B
.blake2s_kunit.mod.cmd 168 B
.blake2s_kunit.mod.o.cmd 50 kB
.blake2s_kunit.o.cmd 51 kB
.chacha20poly1305_kunit.ko.cmd 347 B
.chacha20poly1305_kunit.mod.cmd 195 B
.chacha20poly1305_kunit.mod.o.cmd 50 kB
.chacha20poly1305_kunit.o.cmd 54 kB
.curve25519_kunit.ko.cmd 323 B
.curve25519_kunit.mod.cmd 177 B
.curve25519_kunit.mod.o.cmd 50 kB
.curve25519_kunit.o.cmd 50 kB
.ghash_kunit.ko.cmd 303 B
.ghash_kunit.mod.cmd 162 B
.ghash_kunit.mod.o.cmd 50 kB
.ghash_kunit.o.cmd 51 kB
.md5_kunit.ko.cmd 295 B
.md5_kunit.mod.cmd 156 B
.md5_kunit.mod.o.cmd 50 kB
.md5_kunit.o.cmd 54 kB
.mldsa_kunit.ko.cmd 303 B
.mldsa_kunit.mod.cmd 162 B
.mldsa_kunit.mod.o.cmd 50 kB
.mldsa_kunit.o.cmd 51 kB
.modules.order.cmd 935 B
.nh_kunit.ko.cmd 291 B
.nh_kunit.mod.cmd 153 B
.nh_kunit.mod.o.cmd 50 kB
.nh_kunit.o.cmd 50 kB
.poly1305_kunit.ko.cmd 315 B
.poly1305_kunit.mod.cmd 171 B
.poly1305_kunit.mod.o.cmd 50 kB
.poly1305_kunit.o.cmd 51 kB
.polyval_kunit.ko.cmd 311 B
.polyval_kunit.mod.cmd 168 B
.polyval_kunit.mod.o.cmd 50 kB
.polyval_kunit.o.cmd 51 kB
.sha1_kunit.ko.cmd 299 B
.sha1_kunit.mod.cmd 159 B
.sha1_kunit.mod.o.cmd 50 kB
.sha1_kunit.o.cmd 50 kB
.sha224_kunit.ko.cmd 307 B
.sha224_kunit.mod.cmd 165 B
.sha224_kunit.mod.o.cmd 50 kB
.sha224_kunit.o.cmd 51 kB
.sha256_kunit.ko.cmd 307 B
.sha256_kunit.mod.cmd 165 B
.sha256_kunit.mod.o.cmd 50 kB
.sha256_kunit.o.cmd 51 kB
.sha384_kunit.ko.cmd 307 B
.sha384_kunit.mod.cmd 165 B
.sha384_kunit.mod.o.cmd 50 kB
.sha384_kunit.o.cmd 51 kB
.sha3_kunit.ko.cmd 299 B
.sha3_kunit.mod.cmd 159 B
.sha3_kunit.mod.o.cmd 50 kB
.sha3_kunit.o.cmd 50 kB
.sha512_kunit.ko.cmd 307 B
.sha512_kunit.mod.cmd 165 B
.sha512_kunit.mod.o.cmd 50 kB
.sha512_kunit.o.cmd 51 kB
.siphash_kunit.ko.cmd 311 B
.siphash_kunit.mod.cmd 168 B
.siphash_kunit.mod.o.cmd 50 kB
.siphash_kunit.o.cmd 50 kB
.sm3_kunit.ko.cmd 295 B
.sm3_kunit.mod.cmd 156 B
.sm3_kunit.mod.o.cmd 50 kB
.sm3_kunit.o.cmd 50 kB
Kconfig 7.4 kB
Makefile 1.3 kB
aead-test-template.h 34 kB
aes-cmac-testvecs.h 3.9 kB
aes_cbc_macs_kunit.c 6.7 kB
aes_cbc_macs_kunit.ko 151 kB
aes_cbc_macs_kunit.mod 38 B
aes_cbc_macs_kunit.mod.c 376 B
aes_cbc_macs_kunit.mod.o 3.1 kB
aes_cbc_macs_kunit.o 154 kB
aes_ccm_kunit.c 11 kB
aes_ccm_kunit.ko 267 kB
aes_ccm_kunit.mod 33 B
aes_ccm_kunit.mod.c 376 B
aes_ccm_kunit.mod.o 3.1 kB
aes_ccm_kunit.o 271 kB
aes_gcm_kunit.c 15 kB
aes_gcm_kunit.ko 231 kB
aes_gcm_kunit.mod 33 B
aes_gcm_kunit.mod.c 376 B
aes_gcm_kunit.mod.o 3.1 kB
aes_gcm_kunit.o 235 kB
blake2b-testvecs.h 12 kB
blake2b_kunit.c 4.2 kB
blake2b_kunit.ko 153 kB
blake2b_kunit.mod 33 B
blake2b_kunit.mod.c 387 B
blake2b_kunit.mod.o 3.1 kB
blake2b_kunit.o 155 kB
blake2s-testvecs.h 6.7 kB
blake2s_kunit.c 4.2 kB
blake2s_kunit.ko 152 kB
blake2s_kunit.mod 33 B
blake2s_kunit.mod.c 376 B
blake2s_kunit.mod.o 3.1 kB
blake2s_kunit.o 154 kB
chacha20poly1305_kunit.c 395 kB
chacha20poly1305_kunit.ko 335 kB
chacha20poly1305_kunit.mod 42 B
chacha20poly1305_kunit.mod.c 376 B
chacha20poly1305_kunit.mod.o 3.1 kB
chacha20poly1305_kunit.o 333 kB
curve25519_kunit.c 62 kB
curve25519_kunit.ko 39 kB
curve25519_kunit.mod 36 B
curve25519_kunit.mod.c 390 B
curve25519_kunit.mod.o 3.2 kB
curve25519_kunit.o 37 kB
ghash-testvecs.h 4.1 kB
ghash_kunit.c 5.7 kB
ghash_kunit.ko 147 kB
ghash_kunit.mod 31 B
ghash_kunit.mod.c 376 B
ghash_kunit.mod.o 3.1 kB
ghash_kunit.o 150 kB
hash-test-template.h 16 kB
md5-testvecs.h 4.1 kB
md5_kunit.c 932 B
md5_kunit.ko 132 kB
md5_kunit.mod 29 B
md5_kunit.mod.c 376 B
md5_kunit.mod.o 3.1 kB
md5_kunit.o 134 kB
mldsa-testvecs.h 105 kB
mldsa_kunit.c 12 kB
mldsa_kunit.ko 122 kB
mldsa_kunit.mod 31 B
mldsa_kunit.mod.c 385 B
mldsa_kunit.mod.o 3.1 kB
mldsa_kunit.o 122 kB
modules.order 684 B
nh-testvecs.h 14 kB
nh_kunit.c 1.0 kB
nh_kunit.ko 26 kB
nh_kunit.mod 28 B
nh_kunit.mod.c 382 B
nh_kunit.mod.o 3.1 kB
nh_kunit.o 24 kB
poly1305-testvecs.h 4.1 kB
poly1305_kunit.c 8.9 kB
poly1305_kunit.ko 141 kB
poly1305_kunit.mod 34 B
poly1305_kunit.mod.c 376 B
poly1305_kunit.mod.o 3.1 kB
poly1305_kunit.o 144 kB
polyval-testvecs.h 4.1 kB
polyval_kunit.c 6.8 kB
polyval_kunit.ko 154 kB
polyval_kunit.mod 33 B
polyval_kunit.mod.c 376 B
polyval_kunit.mod.o 3.1 kB
polyval_kunit.o 158 kB
sha1-testvecs.h 4.8 kB
sha1_kunit.c 952 B
sha1_kunit.ko 134 kB
sha1_kunit.mod 30 B
sha1_kunit.mod.c 376 B
sha1_kunit.mod.o 3.1 kB
sha1_kunit.o 137 kB
sha224-testvecs.h 6.1 kB
sha224_kunit.c 988 B
sha224_kunit.ko 135 kB
sha224_kunit.mod 32 B
sha224_kunit.mod.c 376 B
sha224_kunit.mod.o 3.1 kB
sha224_kunit.o 137 kB
sha256-testvecs.h 6.7 kB
sha256_kunit.c 6.3 kB
sha256_kunit.ko 165 kB
sha256_kunit.mod 32 B
sha256_kunit.mod.c 376 B
sha256_kunit.mod.o 3.1 kB
sha256_kunit.o 168 kB
sha3-testvecs.h 7.1 kB
sha384-testvecs.h 9.4 kB
sha384_kunit.c 988 B
sha384_kunit.ko 135 kB
sha384_kunit.mod 32 B
sha384_kunit.mod.c 376 B
sha384_kunit.mod.o 3.1 kB
sha384_kunit.o 138 kB
sha3_kunit.c 13 kB
sha3_kunit.ko 186 kB
sha3_kunit.mod 30 B
sha3_kunit.mod.c 384 B
sha3_kunit.mod.o 3.1 kB
sha3_kunit.o 190 kB
sha512-testvecs.h 12 kB
sha512_kunit.c 988 B
sha512_kunit.ko 136 kB
sha512_kunit.mod 32 B
sha512_kunit.mod.c 376 B
sha512_kunit.mod.o 3.1 kB
sha512_kunit.o 138 kB
siphash_kunit.c 7.4 kB
siphash_kunit.ko 53 kB
siphash_kunit.mod 33 B
siphash_kunit.mod.c 376 B
siphash_kunit.mod.o 3.1 kB
siphash_kunit.o 50 kB
sm3-testvecs.h 6.5 kB
sm3_kunit.c 641 B
sm3_kunit.ko 123 kB
sm3_kunit.mod 29 B
sm3_kunit.mod.c 383 B
sm3_kunit.mod.o 3.1 kB
sm3_kunit.o 126 kB
test-utils.h 2.8 kB

Linux v7.4-rc3 - tests

# SPDX-License-Identifier: GPL-2.0-or-later

config CRYPTO_LIB_AES_CBC_MACS_KUNIT_TEST
	tristate "KUnit tests for AES-CMAC, AES-XCBC-MAC, and AES-CBC-MAC" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_AES_CBC_MACS
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the AES-CMAC, AES-XCBC-MAC, and AES-CBC-MAC message
	  authentication codes.

config CRYPTO_LIB_AES_CCM_KUNIT_TEST
	tristate "KUnit tests for AES-CCM" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_AES_CCM
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	# This test uses BLAKE2s, but that's always built-in.
	help
	  KUnit tests for the AES-CCM authenticated encryption algorithm.

config CRYPTO_LIB_AES_GCM_KUNIT_TEST
	tristate "KUnit tests for AES-GCM" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_AES_GCM
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	# This test uses BLAKE2s, but that's always built-in.
	help
	  KUnit tests for the AES-GCM authenticated encryption algorithm.

config CRYPTO_LIB_BLAKE2B_KUNIT_TEST
	tristate "KUnit tests for BLAKE2b" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_BLAKE2B
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the BLAKE2b cryptographic hash function.

config CRYPTO_LIB_BLAKE2S_KUNIT_TEST
	tristate "KUnit tests for BLAKE2s" if !KUNIT_ALL_TESTS
	depends on KUNIT
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	# No need to depend on CRYPTO_LIB_BLAKE2S here, as that option doesn't
	# exist; the BLAKE2s code is always built-in for the /dev/random driver.
	help
	  KUnit tests for the BLAKE2s cryptographic hash function.

config CRYPTO_LIB_CHACHA20POLY1305_KUNIT_TEST
	tristate "KUnit tests for ChaCha20Poly1305" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_CHACHA20POLY1305
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the ChaCha20Poly1305 authenticated encryption
	  algorithm.

config CRYPTO_LIB_CURVE25519_KUNIT_TEST
	tristate "KUnit tests for Curve25519" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_CURVE25519
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the Curve25519 Diffie-Hellman function.

config CRYPTO_LIB_GHASH_KUNIT_TEST
	tristate "KUnit tests for GHASH" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_GF128HASH
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the GHASH library functions.

config CRYPTO_LIB_MD5_KUNIT_TEST
	tristate "KUnit tests for MD5" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_MD5
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the MD5 cryptographic hash function and its
	  corresponding HMAC.

config CRYPTO_LIB_MLDSA_KUNIT_TEST
	tristate "KUnit tests for ML-DSA" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_MLDSA
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the ML-DSA digital signature algorithm.

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
	  KUnit tests for the NH almost-universal hash function.

config CRYPTO_LIB_POLY1305_KUNIT_TEST
	tristate "KUnit tests for Poly1305" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_POLY1305
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the Poly1305 library functions.

config CRYPTO_LIB_POLYVAL_KUNIT_TEST
	tristate "KUnit tests for POLYVAL" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_GF128HASH
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the POLYVAL library functions.

config CRYPTO_LIB_SHA1_KUNIT_TEST
	tristate "KUnit tests for SHA-1" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_SHA1
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the SHA-1 cryptographic hash function and its
	  corresponding HMAC.

# Option is named *_SHA256_KUNIT_TEST, though both SHA-224 and SHA-256 tests are
# included, for consistency with the naming used elsewhere (e.g. CRYPTO_SHA256).
config CRYPTO_LIB_SHA256_KUNIT_TEST
	tristate "KUnit tests for SHA-224 and SHA-256" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_SHA256
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the SHA-224 and SHA-256 cryptographic hash functions
	  and their corresponding HMACs.

# Option is named *_SHA512_KUNIT_TEST, though both SHA-384 and SHA-512 tests are
# included, for consistency with the naming used elsewhere (e.g. CRYPTO_SHA512).
config CRYPTO_LIB_SHA512_KUNIT_TEST
	tristate "KUnit tests for SHA-384 and SHA-512" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_SHA512
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the SHA-384 and SHA-512 cryptographic hash functions
	  and their corresponding HMACs.

config CRYPTO_LIB_SHA3_KUNIT_TEST
	tristate "KUnit tests for SHA-3" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_SHA3
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the SHA3 cryptographic hash and XOF functions,
	  including SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128 and
	  SHAKE256.

config CRYPTO_LIB_SIPHASH_KUNIT_TEST
	tristate "KUnit tests for SipHash" if !KUNIT_ALL_TESTS
	depends on KUNIT
	default KUNIT_ALL_TESTS
	# SipHash support is always built-in, so there's no kconfig option for
	# it that needs to be depended on here.
	help
	  KUnit tests for the SipHash cryptographically secure PRF.

config CRYPTO_LIB_SM3_KUNIT_TEST
	tristate "KUnit tests for SM3" if !KUNIT_ALL_TESTS
	depends on KUNIT && CRYPTO_LIB_SM3
	default KUNIT_ALL_TESTS
	select CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  KUnit tests for the SM3 cryptographic hash function.

config CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT
	tristate "Enable all crypto library code for KUnit tests"
	depends on KUNIT
	select CRYPTO_LIB_AES_CBC
	select CRYPTO_LIB_AES_CBC_MACS
	select CRYPTO_LIB_AES_CCM
	select CRYPTO_LIB_AES_CTR
	select CRYPTO_LIB_AES_ECB
	select CRYPTO_LIB_AES_GCM
	select CRYPTO_LIB_AES_XTS
	select CRYPTO_LIB_BLAKE2B
	select CRYPTO_LIB_CHACHA20POLY1305
	select CRYPTO_LIB_CURVE25519
	select CRYPTO_LIB_GF128HASH
	select CRYPTO_LIB_MD5
	select CRYPTO_LIB_MLDSA
	select CRYPTO_LIB_NH
	select CRYPTO_LIB_POLY1305
	select CRYPTO_LIB_SHA1
	select CRYPTO_LIB_SHA256
	select CRYPTO_LIB_SHA512
	select CRYPTO_LIB_SHA3
	select CRYPTO_LIB_SM3
	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.

	  You'll still need to enable the tests themselves, either individually
	  or using KUNIT_ALL_TESTS.

config CRYPTO_LIB_BENCHMARK_VISIBLE
	bool

config CRYPTO_LIB_BENCHMARK
	bool "Include benchmarks in KUnit tests for cryptographic functions"
	depends on CRYPTO_LIB_BENCHMARK_VISIBLE
	help
	  Include benchmarks in the KUnit tests for cryptographic functions.
	  The benchmark results are printed to the kernel log when the
	  corresponding KUnit test suite runs.

	  This is useful for evaluating the performance of the cryptographic
	  functions.  However, it will increase the runtime of the KUnit tests.

	  If you're only interested in correctness testing, leave this disabled.