Lines Matching defs:key
96 static psa_status_t cipher_encrypt(psa_key_id_t key,
112 status = psa_cipher_encrypt_setup(&operation, key, alg);
127 static psa_status_t cipher_decrypt(psa_key_id_t key,
142 status = psa_cipher_decrypt_setup(&operation, key, alg);
169 psa_key_id_t key = 0;
185 status = psa_generate_key(&attributes, &key);
188 status = cipher_encrypt(key, alg, iv, sizeof(iv),
193 status = cipher_decrypt(key, alg, iv, sizeof(iv),
202 psa_destroy_key(key);
219 psa_key_id_t key = 0;
233 status = psa_generate_key(&attributes, &key);
236 status = cipher_encrypt(key, alg, iv, sizeof(iv),
241 status = cipher_decrypt(key, alg, iv, sizeof(iv),
250 psa_destroy_key(key);
266 psa_key_id_t key = 0;
280 status = psa_generate_key(&attributes, &key);
283 status = cipher_encrypt(key, alg, iv, sizeof(iv),
288 status = cipher_decrypt(key, alg, iv, sizeof(iv),
297 psa_destroy_key(key);