Lines Matching refs:key
84 static psa_status_t cipher_encrypt(psa_key_id_t key, in cipher_encrypt() argument
100 status = psa_cipher_encrypt_setup(&operation, key, alg); in cipher_encrypt()
115 static psa_status_t cipher_decrypt(psa_key_id_t key, in cipher_decrypt() argument
130 status = psa_cipher_decrypt_setup(&operation, key, alg); in cipher_decrypt()
157 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
173 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
176 status = cipher_encrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
181 status = cipher_decrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
190 psa_destroy_key(key); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
207 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
221 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
224 status = cipher_encrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
229 status = cipher_decrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
238 psa_destroy_key(key); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
254 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_ctr_multi() local
268 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_ctr_multi()
271 status = cipher_encrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_ctr_multi()
276 status = cipher_decrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_ctr_multi()
285 psa_destroy_key(key); in cipher_example_encrypt_decrypt_aes_ctr_multi()