Lines Matching refs:status

39 static int local_err_translation(psa_status_t status)  in local_err_translation()  argument
41 return psa_status_to_mbedtls(status, psa_to_lms_errors, in local_err_translation()
45 #define PSA_TO_MBEDTLS_ERR(status) local_err_translation(status) argument
100 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in create_merkle_leaf_value() local
108 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_leaf_value()
109 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
113 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value()
115 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
120 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_leaf_value()
121 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
125 status = psa_hash_update(&op, D_LEAF_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_leaf_value()
126 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
130 status = psa_hash_update(&op, pub_key, in create_merkle_leaf_value()
132 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
136 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_leaf_value()
138 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
145 return PSA_TO_MBEDTLS_ERR(status); in create_merkle_leaf_value()
177 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in create_merkle_internal_value() local
182 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_internal_value()
183 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
187 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_internal_value()
189 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
194 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_internal_value()
195 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
199 status = psa_hash_update(&op, D_INTR_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_internal_value()
200 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
204 status = psa_hash_update(&op, left_node, in create_merkle_internal_value()
206 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
210 status = psa_hash_update(&op, right_node, in create_merkle_internal_value()
212 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
216 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_internal_value()
218 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
225 return PSA_TO_MBEDTLS_ERR(status); in create_merkle_internal_value()