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
105 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_leaf_value()
106 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
110 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value()
112 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
117 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_leaf_value()
118 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
122 status = psa_hash_update(&op, D_LEAF_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_leaf_value()
123 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
127 status = psa_hash_update(&op, pub_key, in create_merkle_leaf_value()
129 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
133 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_leaf_value()
135 if (status != PSA_SUCCESS) { in create_merkle_leaf_value()
142 return PSA_TO_MBEDTLS_ERR(status); in create_merkle_leaf_value()
174 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in create_merkle_internal_value() local
179 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_internal_value()
180 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
184 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_internal_value()
186 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
191 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_internal_value()
192 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
196 status = psa_hash_update(&op, D_INTR_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_internal_value()
197 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
201 status = psa_hash_update(&op, left_node, in create_merkle_internal_value()
203 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
207 status = psa_hash_update(&op, right_node, in create_merkle_internal_value()
209 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
213 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_internal_value()
215 if (status != PSA_SUCCESS) { in create_merkle_internal_value()
222 return PSA_TO_MBEDTLS_ERR(status); in create_merkle_internal_value()