1a8e1175bSopenharmony_ciGenerate random twice with CTR_DRBG 2a8e1175bSopenharmony_cirandom_twice_with_ctr_drbg: 3a8e1175bSopenharmony_ci 4a8e1175bSopenharmony_ciGenerate random twice with HMAC_DRBG(SHA-1) 5a8e1175bSopenharmony_cidepends_on:MBEDTLS_MD_CAN_SHA1 6a8e1175bSopenharmony_cirandom_twice_with_hmac_drbg:MBEDTLS_MD_SHA1 7a8e1175bSopenharmony_ci 8a8e1175bSopenharmony_ciGenerate random twice with HMAC_DRBG(SHA-256) 9a8e1175bSopenharmony_cidepends_on:MBEDTLS_MD_CAN_SHA256 10a8e1175bSopenharmony_cirandom_twice_with_hmac_drbg:MBEDTLS_MD_SHA256 11a8e1175bSopenharmony_ci 12a8e1175bSopenharmony_ciGenerate random twice with HMAC_DRBG(SHA-512) 13a8e1175bSopenharmony_cidepends_on:MBEDTLS_MD_CAN_SHA512 14a8e1175bSopenharmony_cirandom_twice_with_hmac_drbg:MBEDTLS_MD_SHA512 15a8e1175bSopenharmony_ci 16a8e1175bSopenharmony_ciGenerate random twice with PSA classic wrapper 17a8e1175bSopenharmony_cirandom_twice_with_psa_from_classic: 18a8e1175bSopenharmony_ci 19a8e1175bSopenharmony_ciGenerate random twice with PSA API 20a8e1175bSopenharmony_cirandom_twice_with_psa_from_psa: 21a8e1175bSopenharmony_ci 22a8e1175bSopenharmony_ci# This bad-usage test case currently crashes in the default configuration 23a8e1175bSopenharmony_ci# because CTR_DRBG crashes when given an unseeded context. This is arguably 24a8e1175bSopenharmony_ci# a good thing because it prevents misuse of mbedtls_psa_get_random(). 25a8e1175bSopenharmony_ci#PSA classic wrapper: PSA not active 26a8e1175bSopenharmony_ci#mbedtls_psa_get_random_no_init: 27a8e1175bSopenharmony_ci 28a8e1175bSopenharmony_ciPSA classic wrapper: 0 bytes 29a8e1175bSopenharmony_cimbedtls_psa_get_random_length:0 30a8e1175bSopenharmony_ci 31a8e1175bSopenharmony_ciPSA classic wrapper: 1 byte 32a8e1175bSopenharmony_cimbedtls_psa_get_random_length:1 33a8e1175bSopenharmony_ci 34a8e1175bSopenharmony_ciPSA classic wrapper: 256 bytes 35a8e1175bSopenharmony_cimbedtls_psa_get_random_length:256 36a8e1175bSopenharmony_ci 37a8e1175bSopenharmony_ci# An external RNG is supposed to handle arbitrary request lengths. Test it 38a8e1175bSopenharmony_ci# with something larger than any RNG call made by Mbed TLS itself expects. 39a8e1175bSopenharmony_ci# CTR_DRBG and HMAC_DRBG have their own maximum request lengths which may 40a8e1175bSopenharmony_ci# be lower than the value chosen here and are tested separately. 41a8e1175bSopenharmony_ciPSA classic wrapper: external RNG large 42a8e1175bSopenharmony_cidepends_on:MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG 43a8e1175bSopenharmony_cimbedtls_psa_get_random_length:1024 44a8e1175bSopenharmony_ci 45a8e1175bSopenharmony_ciPSA classic wrapper: CTR_DRBG max 46a8e1175bSopenharmony_cidepends_on:!MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG:MBEDTLS_CTR_DRBG_C 47a8e1175bSopenharmony_cimbedtls_psa_get_random_length:MBEDTLS_CTR_DRBG_MAX_REQUEST 48a8e1175bSopenharmony_ci 49a8e1175bSopenharmony_ciPSA classic wrapper: HMAC_DRBG max 50a8e1175bSopenharmony_cidepends_on:!MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG:!MBEDTLS_CTR_DRBG_C:MBEDTLS_HMAC_DRBG_C 51a8e1175bSopenharmony_cimbedtls_psa_get_random_length:MBEDTLS_HMAC_DRBG_MAX_REQUEST 52a8e1175bSopenharmony_ci 53a8e1175bSopenharmony_ciPSA classic wrapper: ECDSA signature (SECP256R1) 54a8e1175bSopenharmony_cidepends_on:MBEDTLS_ECP_DP_SECP256R1_ENABLED 55a8e1175bSopenharmony_cimbedtls_psa_get_random_ecdsa_sign:MBEDTLS_ECP_DP_SECP256R1 56