1a8e1175bSopenharmony_ciPSA key attributes structure
2a8e1175bSopenharmony_cidepends_on:PSA_WANT_ALG_CCM:PSA_WANT_KEY_TYPE_AES
3a8e1175bSopenharmony_ciattributes_set_get:0xffff1234:0x6963:PSA_KEY_LIFETIME_PERSISTENT:PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_DECRYPT:PSA_ALG_CCM:PSA_KEY_TYPE_AES:128
4a8e1175bSopenharmony_ci
5a8e1175bSopenharmony_ciPSA key attributes: id only
6a8e1175bSopenharmony_cipersistence_attributes:0x1234:0x5678:-1:-1:0:0x1234:0x5678:PSA_KEY_LIFETIME_PERSISTENT
7a8e1175bSopenharmony_ci
8a8e1175bSopenharmony_ciPSA key attributes: lifetime=3 only
9a8e1175bSopenharmony_cipersistence_attributes:-1:0:3:-1:0:0:0:3
10a8e1175bSopenharmony_ci
11a8e1175bSopenharmony_ciPSA key attributes: id then back to volatile
12a8e1175bSopenharmony_cipersistence_attributes:0x1234:0x5678:PSA_KEY_LIFETIME_VOLATILE:-1:0:0:0x5678:PSA_KEY_LIFETIME_VOLATILE
13a8e1175bSopenharmony_ci
14a8e1175bSopenharmony_ciPSA key attributes: id then back to non local volatile
15a8e1175bSopenharmony_cipersistence_attributes:0x1234:0x5678:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_LIFETIME_VOLATILE,1):-1:0:0:0x5678:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_LIFETIME_VOLATILE,1)
16a8e1175bSopenharmony_ci
17a8e1175bSopenharmony_ciPSA key attributes: id then lifetime
18a8e1175bSopenharmony_cipersistence_attributes:0x1234:0x5678:3:-1:0:0x1234:0x5678:3
19a8e1175bSopenharmony_ci
20a8e1175bSopenharmony_ciPSA key attributes: lifetime then id
21a8e1175bSopenharmony_cipersistence_attributes:0x1234:0x5678:3:0x1235:0x5679:0x1235:0x5679:3
22a8e1175bSopenharmony_ci
23a8e1175bSopenharmony_ciPSA key attributes: non local volatile lifetime then id
24a8e1175bSopenharmony_cipersistence_attributes:0x1234:0x5678:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_LIFETIME_VOLATILE,3):0x1235:0x5679:0x1235:0x5679:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_LIFETIME_PERSISTENT,3)
25a8e1175bSopenharmony_ci
26a8e1175bSopenharmony_ciPSA key attributes: slot number
27a8e1175bSopenharmony_cislot_number_attribute:
28