Lines Matching refs:PSA_CHECK

84 #define PSA_CHECK(expr)                                       \
163 PSA_CHECK(psa_export_key(key,
197 PSA_CHECK(psa_generate_key(&attributes, &key));
199 PSA_CHECK(save_key(key, key_file_name));
240 PSA_CHECK(psa_import_key(&attributes, key_data, key_size, master_key));
280 PSA_CHECK(psa_key_derivation_setup(&operation, KDF_ALG));
281 PSA_CHECK(psa_key_derivation_input_bytes(
284 PSA_CHECK(psa_key_derivation_input_key(
287 PSA_CHECK(psa_key_derivation_input_bytes(
292 PSA_CHECK(psa_destroy_key(*key));
295 PSA_CHECK(psa_key_derivation_output_key(&attributes, &operation,
297 PSA_CHECK(psa_key_derivation_abort(&operation));
322 PSA_CHECK(psa_key_derivation_setup(&operation, KDF_ALG));
323 PSA_CHECK(psa_key_derivation_input_bytes(
326 PSA_CHECK(psa_key_derivation_input_key(
329 PSA_CHECK(psa_key_derivation_input_bytes(
338 PSA_CHECK(psa_key_derivation_output_key(&attributes, &operation,
376 PSA_CHECK(psa_get_key_attributes(wrapping_key, &attributes));
400 PSA_CHECK(psa_generate_random(header.iv, WRAPPING_IV_SIZE));
401 PSA_CHECK(psa_aead_encrypt(wrapping_key, WRAPPING_ALG,
465 PSA_CHECK(psa_get_key_attributes(wrapping_key, &attributes));
489 PSA_CHECK(psa_aead_decrypt(wrapping_key, WRAPPING_ALG,
535 PSA_CHECK(psa_crypto_init());
543 PSA_CHECK(import_key_from_file(PSA_KEY_USAGE_DERIVE | PSA_KEY_USAGE_EXPORT,
549 PSA_CHECK(derive_key_ladder(ladder, ladder_depth,
554 PSA_CHECK(save_key(derivation_key, output_file_name));
557 PSA_CHECK(derive_wrapping_key(PSA_KEY_USAGE_DECRYPT,
560 PSA_CHECK(unwrap_data(input_file_name, output_file_name,
564 PSA_CHECK(derive_wrapping_key(PSA_KEY_USAGE_ENCRYPT,
567 PSA_CHECK(wrap_data(input_file_name, output_file_name,