Home
last modified time | relevance | path

Searched refs:psa_hash_update (Results 1 – 16 of 16) sorted by relevance

/third_party/mbedtls/library/
Dlmots.c164 status = psa_hash_update(&op, params->I_key_identifier, in create_digit_array_with_checksum()
170 status = psa_hash_update(&op, params->q_leaf_identifier, in create_digit_array_with_checksum()
176 status = psa_hash_update(&op, D_MESSAGE_CONSTANT_BYTES, D_CONST_LEN); in create_digit_array_with_checksum()
181 status = psa_hash_update(&op, C_random_value, in create_digit_array_with_checksum()
187 status = psa_hash_update(&op, msg, msg_len); in create_digit_array_with_checksum()
276 status = psa_hash_update(&op, in hash_digit_array()
283 status = psa_hash_update(&op, in hash_digit_array()
293 status = psa_hash_update(&op, i_digit_idx_bytes, I_DIGIT_IDX_LEN); in hash_digit_array()
301 status = psa_hash_update(&op, j_hash_idx_bytes, J_HASH_IDX_LEN); in hash_digit_array()
306 status = psa_hash_update(&op, tmp_hash, in hash_digit_array()
[all …]
Dlms.c115 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value()
122 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_leaf_value()
127 status = psa_hash_update(&op, D_LEAF_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_leaf_value()
132 status = psa_hash_update(&op, pub_key, in create_merkle_leaf_value()
189 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_internal_value()
196 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_internal_value()
201 status = psa_hash_update(&op, D_INTR_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_internal_value()
206 status = psa_hash_update(&op, left_node, in create_merkle_internal_value()
212 status = psa_hash_update(&op, right_node, in create_merkle_internal_value()
Dpem.c186 if ((status = psa_hash_update(&operation, pwd, pwdlen)) != PSA_SUCCESS) { in pem_pbkdf1()
190 if ((status = psa_hash_update(&operation, iv, 8)) != PSA_SUCCESS) { in pem_pbkdf1()
221 if ((status = psa_hash_update(&operation, md5sum, 16)) != PSA_SUCCESS) { in pem_pbkdf1()
225 if ((status = psa_hash_update(&operation, pwd, pwdlen)) != PSA_SUCCESS) { in pem_pbkdf1()
229 if ((status = psa_hash_update(&operation, iv, 8)) != PSA_SUCCESS) { in pem_pbkdf1()
Dconstant_time.c579 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac()
580 PSA_CHK(psa_hash_update(&operation, add_data, add_data_len)); in mbedtls_ct_hmac()
581 PSA_CHK(psa_hash_update(&operation, data, min_data_len)); in mbedtls_ct_hmac()
599 PSA_CHK(psa_hash_update(&operation, data + offset, 1)); in mbedtls_ct_hmac()
616 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac()
617 PSA_CHK(psa_hash_update(&operation, output, hash_size)); in mbedtls_ct_hmac()
Dpsa_crypto_mac.c106 status = psa_hash_update(&hmac->hash_ctx, ipad, block_size); in psa_hmac_setup_internal()
119 return psa_hash_update(&hmac->hash_ctx, data, data_length); in psa_hmac_update_internal()
144 status = psa_hash_update(&hmac->hash_ctx, hmac->opad, block_size); in psa_hmac_finish_internal()
149 status = psa_hash_update(&hmac->hash_ctx, tmp, hash_size); in psa_hmac_finish_internal()
Dpkcs12.c304 if ((status = psa_hash_update(&op, diversifier, v)) != PSA_SUCCESS) { in calculate_hashes()
309 if ((status = psa_hash_update(&op, salt_block, v)) != PSA_SUCCESS) { in calculate_hashes()
315 if ((status = psa_hash_update(&op, pwd_block, v)) != PSA_SUCCESS) { in calculate_hashes()
Drsa.c1170 if ((status = psa_hash_update(&op, src, slen)) != PSA_SUCCESS) { in mgf_mask()
1173 if ((status = psa_hash_update(&op, counter, 4)) != PSA_SUCCESS) { in mgf_mask()
1263 if ((status = psa_hash_update(&op, zeros, sizeof(zeros))) != PSA_SUCCESS) { in hash_mprime()
1266 if ((status = psa_hash_update(&op, hash, hlen)) != PSA_SUCCESS) { in hash_mprime()
1269 if ((status = psa_hash_update(&op, salt, slen)) != PSA_SUCCESS) { in hash_mprime()
Dmd.c513 psa_status_t status = psa_hash_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
Dssl_tls.c912 status = psa_hash_update(&ssl->handshake->fin_sha256_psa, buf, len); in ssl_update_checksum_start()
925 status = psa_hash_update(&ssl->handshake->fin_sha384_psa, buf, len); in ssl_update_checksum_start()
944 return PSA_TO_MD_ERR(psa_hash_update( in ssl_update_checksum_sha256()
957 return PSA_TO_MD_ERR(psa_hash_update( in ssl_update_checksum_sha384()
8787 if ((status = psa_hash_update(&hash_operation, ssl->handshake->randbytes, in mbedtls_ssl_get_key_exchange_md_tls1_2()
8793 if ((status = psa_hash_update(&hash_operation, in mbedtls_ssl_get_key_exchange_md_tls1_2()
Dpsa_crypto.c2213 psa_status_t psa_hash_update(psa_hash_operation_t *operation, in psa_hash_update() function
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_hash.function23 PSA_ASSERT(psa_hash_update(&operation,
46 PSA_ASSERT(psa_hash_update(&operation,
75 PSA_ASSERT(psa_hash_update(&operation,
78 PSA_ASSERT(psa_hash_update(&operation,
80 PSA_ASSERT(psa_hash_update(&operation2,
Dtest_suite_psa_crypto_driver_wrappers.function2291 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
2333 TEST_EQUAL(psa_hash_update(&operation, input->x, input->len),
2342 TEST_EQUAL(psa_hash_update(&operation, input->x, input->len),
2397 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
2459 PSA_ASSERT(psa_hash_update(&target_operation,
Dtest_suite_psa_crypto.function2579 TEST_EQUAL(psa_hash_update(&func, input, sizeof(input)),
2581 TEST_EQUAL(psa_hash_update(&init, input, sizeof(input)),
2583 TEST_EQUAL(psa_hash_update(&zero, input, sizeof(input)),
2665 status = psa_hash_update(&operation, input->x, input->len);
2708 status = psa_hash_update(&operation, input->x, input->len);
2748 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
2766 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
2779 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
2790 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
2801 PSA_ASSERT(psa_hash_update(&operation, input->x, input->len));
[all …]
/third_party/mbedtls/tests/include/spe/
Dcrypto_spe.h104 #define psa_hash_update \ macro
105 PSA_FUNCTION_NAME(psa_hash_update)
/third_party/mbedtls/include/psa/
Dcrypto.h1020 psa_status_t psa_hash_update(psa_hash_operation_t *operation,
/third_party/mbedtls/docs/proposed/
Dpsa-driver-interface.md258 * `"hash_update"`: called by `psa_hash_update()`.