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