mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-04 08:04:20 +00:00
Add test cases for ChaCha20 stream cipher and ChaCha20-Poly1305 AEAD algorithm using the NuttX cryptodev interface. Tests cover RFC 7539 test vectors including encryption/decryption with various key/nonce/counter combinations. Signed-off-by: guao <guao@xiaomi.com>
135 lines
2.7 KiB
Text
135 lines
2.7 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config TESTING_CRYPTO
|
|
tristate "crypto test"
|
|
default n
|
|
---help---
|
|
Enable crypto test
|
|
|
|
if TESTING_CRYPTO
|
|
|
|
config TESTING_CRYPTO_3DES_CBC
|
|
bool "3des-cbc crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_AES_CBC
|
|
bool "aes-cbc crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_AES_CTR
|
|
bool "aes-ctr crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_AES_XTS
|
|
bool "aes-xts crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_CHACHA20
|
|
bool "chacha20 crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_CHACHA20_POLY1305
|
|
bool "chacha20-poly1305 crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_HMAC
|
|
bool "hmac crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_HASH
|
|
bool "hash crypto test"
|
|
default n
|
|
|
|
if TESTING_CRYPTO_HASH
|
|
|
|
config TESTING_CRYPTO_HASH_HUGE_BLOCK
|
|
bool "hash huge block crypto test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_HASH_UNALIGNED_BUFFER_SIZE
|
|
bool "hash unaligned buffer size test"
|
|
default y
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_MD5
|
|
bool "disable md5 tests"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_SHA1
|
|
bool "disable sha1 tests"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_SHA224
|
|
bool "disable sha224 tests"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_SHA256
|
|
bool "disable sha256 tests"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_SHA512
|
|
bool "disable sha512 tests"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_UNALIGNED_MD5
|
|
bool "disable unaligned md5 tests"
|
|
depends on !TESTING_CRYPTO_HASH_DISABLE_MD5
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_UNALIGNED_SHA1
|
|
bool "disable unaligned sha1 tests"
|
|
depends on !TESTING_CRYPTO_HASH_DISABLE_SHA1
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_UNALIGNED_SHA224
|
|
bool "disable unaligned sha224 tests"
|
|
depends on !TESTING_CRYPTO_HASH_DISABLE_SHA224
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_UNALIGNED_SHA256
|
|
bool "disable unaligned sha256 tests"
|
|
depends on !TESTING_CRYPTO_HASH_DISABLE_SHA256
|
|
default n
|
|
|
|
config TESTING_CRYPTO_HASH_DISABLE_UNALIGNED_SHA512
|
|
bool "disable unaligned sha512 tests"
|
|
depends on !TESTING_CRYPTO_HASH_DISABLE_SHA512
|
|
default n
|
|
|
|
endif # TESTING_CRYPTO_HASH
|
|
|
|
config TESTING_CRYPTO_CRC32
|
|
bool "crc32 crypto test"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_AES_CMAC
|
|
bool "aes-cmac crypto test"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_ECDSA
|
|
bool "ecdsa crypto test"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_ECDH
|
|
bool "ecdh crypto test"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_RSA
|
|
bool "rsa crypto test"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_PBKDF2
|
|
bool "pbkdf2 crypto test"
|
|
default n
|
|
|
|
config TESTING_CRYPTO_PRIORITY
|
|
int "crypto test task priority"
|
|
default 100
|
|
|
|
config TESTING_CRYPTO_STACKSIZE
|
|
int "crypto test stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif # TESTING_CRYPTO
|