Lines Matching defs:PSA_CHK
104 #define PSA_CHK(func_call) \
116 PSA_CHK(psa_export_key(key, key_buf, block_size, &mac_key_length));
126 PSA_CHK(psa_hash_setup(&operation, hash_alg));
129 PSA_CHK(psa_hash_update(&operation, key_buf, block_size));
130 PSA_CHK(psa_hash_update(&operation, add_data, add_data_len));
131 PSA_CHK(psa_hash_update(&operation, data, min_data_len));
141 PSA_CHK(psa_hash_clone(&operation, &aux_operation));
142 PSA_CHK(psa_hash_finish(&aux_operation, aux_out,
149 PSA_CHK(psa_hash_update(&operation, data + offset, 1));
154 PSA_CHK(psa_hash_abort(&operation));
165 PSA_CHK(psa_hash_setup(&operation, hash_alg));
166 PSA_CHK(psa_hash_update(&operation, key_buf, block_size));
167 PSA_CHK(psa_hash_update(&operation, output, hash_size));
168 PSA_CHK(psa_hash_finish(&operation, output, hash_size, &hash_length));
170 #undef PSA_CHK