Lines Matching refs:key

97 static psa_status_t cipher_encrypt( psa_key_id_t key,  in cipher_encrypt()  argument
113 status = psa_cipher_encrypt_setup( &operation, key, alg ); in cipher_encrypt()
128 static psa_status_t cipher_decrypt( psa_key_id_t key, in cipher_decrypt() argument
143 status = psa_cipher_decrypt_setup( &operation, key, alg ); in cipher_decrypt()
170 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
186 status = psa_generate_key( &attributes, &key ); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
189 status = cipher_encrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
194 status = cipher_decrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
203 psa_destroy_key( key ); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
220 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
234 status = psa_generate_key( &attributes, &key ); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
237 status = cipher_encrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
242 status = cipher_decrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
251 psa_destroy_key( key ); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
267 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_ctr_multi() local
281 status = psa_generate_key( &attributes, &key ); in cipher_example_encrypt_decrypt_aes_ctr_multi()
284 status = cipher_encrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_ctr_multi()
289 status = cipher_decrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_ctr_multi()
298 psa_destroy_key( key ); in cipher_example_encrypt_decrypt_aes_ctr_multi()