Home
last modified time | relevance | path

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

/mbedtls-latest/library/
Dlmots.c125 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
[all …]
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()
110 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value()
117 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_leaf_value()
122 status = psa_hash_update(&op, D_LEAF_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_leaf_value()
127 status = psa_hash_update(&op, pub_key, in create_merkle_leaf_value()
133 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), 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
[all …]
/mbedtls-latest/programs/psa/
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()
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-latest/tests/suites/
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;
Dtest_suite_x509parse.function664 * See comments on ecp_test_vect_restart() for op count precision.
Dtest_suite_psa_crypto.function1220 value of max_ops that a successful operation should take more than one op
/mbedtls-latest/
DCMakeLists.txt215 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wlogical-op")
/mbedtls-latest/docs/architecture/psa-migration/
Dpsa-legacy-bridges.md190 …on functions that take an algorithm as argument and just happen to be a no-op with RSA? One factor…