/mbedtls-latest/library/ |
D | lmots.c | 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 [all …]
|
D | lms.c | 99 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/ |
D | hmac_demo.c | 117 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()
|
D | aead_demo.c | 203 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/ |
D | test_suite_aes.function | 183 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;
|
D | test_suite_x509parse.function | 664 * See comments on ecp_test_vect_restart() for op count precision.
|
D | test_suite_psa_crypto.function | 1220 value of max_ops that a successful operation should take more than one op
|
/mbedtls-latest/ |
D | CMakeLists.txt | 215 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wlogical-op")
|
/mbedtls-latest/docs/architecture/psa-migration/ |
D | psa-legacy-bridges.md | 190 …on functions that take an algorithm as argument and just happen to be a no-op with RSA? One factor…
|