quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test_suite_psa_crypto_init.data (2298B)


      1 Create NV seed file
      2 create_nv_seed:
      3 
      4 PSA init/deinit
      5 init_deinit:2
      6 
      7 PSA deinit without init
      8 deinit_without_init:0
      9 
     10 PSA deinit twice
     11 deinit_without_init:1
     12 
     13 PSA threaded init checks
     14 psa_threaded_init:100
     15 
     16 No random without init
     17 validate_module_init_generate_random:0
     18 
     19 No key slot access without init
     20 validate_module_init_key_based:0
     21 
     22 No random after deinit
     23 validate_module_init_generate_random:1
     24 
     25 No key slot access after deinit
     26 validate_module_init_key_based:1
     27 
     28 Custom entropy sources: all standard
     29 custom_entropy_sources:0x0000ffff:PSA_SUCCESS
     30 
     31 # MBEDTLS_PSA_INJECT_ENTROPY means that a source of entropy (the seed file)
     32 # is effectively always available.
     33 Custom entropy sources: none
     34 depends_on:!MBEDTLS_PSA_INJECT_ENTROPY
     35 custom_entropy_sources:0:PSA_ERROR_INSUFFICIENT_ENTROPY
     36 
     37 Fake entropy: never returns anything
     38 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
     39 
     40 Fake entropy: less than the block size
     41 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
     42 
     43 Fake entropy: not enough for a nonce
     44 depends_on:ENTROPY_NONCE_LEN != 0
     45 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
     46 
     47 Fake entropy: one block eventually
     48 depends_on:ENTROPY_NONCE_LEN == 0
     49 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
     50 
     51 Fake entropy: one block in two steps
     52 depends_on:ENTROPY_NONCE_LEN == 0
     53 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
     54 
     55 Fake entropy: more than one block in two steps
     56 depends_on:ENTROPY_NONCE_LEN == 0
     57 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:PSA_SUCCESS
     58 
     59 Fake entropy: two blocks eventually
     60 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
     61 
     62 NV seed only: less than minimum
     63 entropy_from_nv_seed:MBEDTLS_ENTROPY_MIN_PLATFORM - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
     64 
     65 NV seed only: less than one block
     66 entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
     67 
     68 NV seed only: just enough
     69 entropy_from_nv_seed:ENTROPY_MIN_NV_SEED_SIZE:PSA_SUCCESS
     70 
     71 Recreate NV seed file
     72 create_nv_seed: