Home
last modified time | relevance | path

Searched refs:op (Results 1 – 9 of 9) sorted by relevance

/mbedtls/library/
A Dlmots.c163 status = psa_hash_finish(&op, out, in create_digit_array_with_checksum()
174 psa_hash_abort(&op); in create_digit_array_with_checksum()
284 psa_hash_abort(&op); in hash_digit_array()
292 psa_hash_abort(&op); in hash_digit_array()
326 status = psa_hash_update(&op, in public_key_from_hashed_digit_array()
357 psa_hash_abort(&op); in public_key_from_hashed_digit_array()
601 status = psa_hash_update(&op, in mbedtls_lmots_generate_private_key()
608 status = psa_hash_update(&op, 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()
[all …]
A Dlms.c99 psa_hash_operation_t op; in create_merkle_leaf_value() local
104 op = psa_hash_operation_init(); in create_merkle_leaf_value()
105 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_leaf_value()
127 status = psa_hash_update(&op, pub_key, in create_merkle_leaf_value()
140 psa_hash_abort(&op); in create_merkle_leaf_value()
173 psa_hash_operation_t op; in create_merkle_internal_value() local
178 op = psa_hash_operation_init(); in create_merkle_internal_value()
179 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_internal_value()
201 status = psa_hash_update(&op, left_node, in create_merkle_internal_value()
207 status = psa_hash_update(&op, right_node, in create_merkle_internal_value()
[all …]
/mbedtls/programs/psa/
A Dhmac_demo.c117 psa_mac_operation_t op = PSA_MAC_OPERATION_INIT; in hmac_demo() local
121 PSA_CHECK(psa_mac_sign_setup(&op, key, alg)); in hmac_demo()
122 PSA_CHECK(psa_mac_update(&op, msg1_part1, sizeof(msg1_part1))); in hmac_demo()
123 PSA_CHECK(psa_mac_update(&op, msg1_part2, sizeof(msg1_part2))); in hmac_demo()
124 PSA_CHECK(psa_mac_sign_finish(&op, out, sizeof(out), &out_len)); in hmac_demo()
128 PSA_CHECK(psa_mac_sign_setup(&op, key, alg)); in hmac_demo()
129 PSA_CHECK(psa_mac_update(&op, msg2_part1, sizeof(msg2_part1))); in hmac_demo()
130 PSA_CHECK(psa_mac_update(&op, msg2_part2, sizeof(msg2_part2))); in hmac_demo()
131 PSA_CHECK(psa_mac_sign_finish(&op, out, sizeof(out), &out_len)); in hmac_demo()
135 psa_mac_abort(&op); // needed on error, harmless on success in hmac_demo()
A Daead_demo.c203 psa_aead_operation_t op = PSA_AEAD_OPERATION_INIT; in aead_encrypt() local
204 PSA_CHECK(psa_aead_encrypt_setup(&op, key, alg)); in aead_encrypt()
206 PSA_CHECK(psa_aead_set_nonce(&op, iv, iv_len)); in aead_encrypt()
207 PSA_CHECK(psa_aead_update_ad(&op, ad, ad_len)); in aead_encrypt()
208 PSA_CHECK(psa_aead_update(&op, part1, part1_len, p, end - p, &olen)); in aead_encrypt()
210 PSA_CHECK(psa_aead_update(&op, part2, part2_len, p, end - p, &olen)); in aead_encrypt()
212 PSA_CHECK(psa_aead_finish(&op, p, end - p, &olen, in aead_encrypt()
222 psa_aead_abort(&op); // required on errors, harmless on success in aead_encrypt()
/mbedtls/tests/suites/
A Dtest_suite_aes.function183 unsigned char *ip = input, *op = output_b;
188 TEST_EQUAL(mbedtls_aes_crypt_ctr(&ctx, l, &nc_off_b, ctr_b, stream_block_b, ip, op), 0);
190 op += l;
A Dtest_suite_x509parse.function651 * See comments on ecp_test_vect_restart() for op count precision.
A Dtest_suite_psa_crypto.function1242 value of max_ops that a successful operation should take more than one op
/mbedtls/
A DCMakeLists.txt207 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wlogical-op")
/mbedtls/docs/architecture/psa-migration/
A Dpsa-legacy-bridges.md190 …on functions that take an algorithm as argument and just happen to be a no-op with RSA? One factor…

Completed in 23 milliseconds