Lines Matching refs:op

125     psa_hash_operation_t op = PSA_HASH_OPERATION_INIT;  in create_digit_array_with_checksum()  local
130 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_digit_array_with_checksum()
135 status = psa_hash_update(&op, params->I_key_identifier, in create_digit_array_with_checksum()
141 status = psa_hash_update(&op, params->q_leaf_identifier, in create_digit_array_with_checksum()
147 status = psa_hash_update(&op, D_MESSAGE_CONSTANT_BYTES, D_CONST_LEN); in create_digit_array_with_checksum()
152 status = psa_hash_update(&op, C_random_value, in create_digit_array_with_checksum()
158 status = psa_hash_update(&op, msg, msg_len); in create_digit_array_with_checksum()
163 status = psa_hash_finish(&op, out, in create_digit_array_with_checksum()
174 psa_hash_abort(&op); in create_digit_array_with_checksum()
220 psa_hash_operation_t op = PSA_HASH_OPERATION_INIT; in hash_digit_array() local
241 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in hash_digit_array()
246 status = psa_hash_update(&op, in hash_digit_array()
253 status = psa_hash_update(&op, in hash_digit_array()
261 status = psa_hash_update(&op, i_digit_idx_bytes, I_DIGIT_IDX_LEN); in hash_digit_array()
267 status = psa_hash_update(&op, j_hash_idx_bytes, J_HASH_IDX_LEN); in hash_digit_array()
272 status = psa_hash_update(&op, tmp_hash, in hash_digit_array()
278 status = psa_hash_finish(&op, tmp_hash, sizeof(tmp_hash), in hash_digit_array()
284 psa_hash_abort(&op); in hash_digit_array()
292 psa_hash_abort(&op); in hash_digit_array()
317 psa_hash_operation_t op = PSA_HASH_OPERATION_INIT; in public_key_from_hashed_digit_array() local
321 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in public_key_from_hashed_digit_array()
326 status = psa_hash_update(&op, in public_key_from_hashed_digit_array()
333 status = psa_hash_update(&op, params->q_leaf_identifier, in public_key_from_hashed_digit_array()
339 status = psa_hash_update(&op, D_PUBLIC_CONSTANT_BYTES, D_CONST_LEN); in public_key_from_hashed_digit_array()
344 status = psa_hash_update(&op, y_hashed_digits, in public_key_from_hashed_digit_array()
351 status = psa_hash_finish(&op, pub_key, in public_key_from_hashed_digit_array()
357 psa_hash_abort(&op); in public_key_from_hashed_digit_array()
570 psa_hash_operation_t op = PSA_HASH_OPERATION_INIT; in mbedtls_lmots_generate_private_key() local
596 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in mbedtls_lmots_generate_private_key()
601 status = psa_hash_update(&op, in mbedtls_lmots_generate_private_key()
608 status = psa_hash_update(&op, in mbedtls_lmots_generate_private_key()
616 status = psa_hash_update(&op, i_digit_idx_bytes, I_DIGIT_IDX_LEN); in mbedtls_lmots_generate_private_key()
621 status = psa_hash_update(&op, const_bytes, sizeof(const_bytes)); in mbedtls_lmots_generate_private_key()
626 status = psa_hash_update(&op, seed, seed_size); in mbedtls_lmots_generate_private_key()
631 status = psa_hash_finish(&op, in mbedtls_lmots_generate_private_key()
639 psa_hash_abort(&op); in mbedtls_lmots_generate_private_key()
645 psa_hash_abort(&op); in mbedtls_lmots_generate_private_key()