Home
last modified time | relevance | path

Searched refs:SAMPLE_KEY_ID (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/psa/persistent_key/src/
Dmain.c9 #define SAMPLE_KEY_ID PSA_KEY_ID_USER_MIN macro
23 psa_set_key_id(&key_attributes, SAMPLE_KEY_ID); in generate_persistent_key()
33 __ASSERT_NO_MSG(key_id == SAMPLE_KEY_ID); in generate_persistent_key()
36 ret = psa_purge_key(SAMPLE_KEY_ID); in generate_persistent_key()
59 ret = psa_cipher_encrypt(SAMPLE_KEY_ID, SAMPLE_ALG, plaintext, sizeof(plaintext), in use_persistent_key()
66 ret = psa_cipher_decrypt(SAMPLE_KEY_ID, SAMPLE_ALG, ciphertext, ciphertext_len, in use_persistent_key()
92 ret = psa_destroy_key(SAMPLE_KEY_ID); in destroy_persistent_key()
107 psa_destroy_key(SAMPLE_KEY_ID); in main()