Lines Matching refs:hash_length
2243 size_t *hash_length) in psa_hash_finish() argument
2245 *hash_length = 0; in psa_hash_finish()
2251 operation, hash, hash_size, hash_length); in psa_hash_finish()
2258 size_t hash_length) in psa_hash_verify() argument
2271 if (actual_hash_length != hash_length) { in psa_hash_verify()
2292 size_t *hash_length) in psa_hash_compute() argument
2294 *hash_length = 0; in psa_hash_compute()
2300 hash, hash_size, hash_length); in psa_hash_compute()
2305 const uint8_t *hash, size_t hash_length) in psa_hash_compare() argument
2321 if (actual_hash_length != hash_length) { in psa_hash_compare()
2871 size_t hash_length; in psa_sign_message_builtin() local
2877 hash, sizeof(hash), &hash_length); in psa_sign_message_builtin()
2885 alg, hash, hash_length, in psa_sign_message_builtin()
2918 size_t hash_length; in psa_verify_message_builtin() local
2924 hash, sizeof(hash), &hash_length); in psa_verify_message_builtin()
2932 alg, hash, hash_length, in psa_verify_message_builtin()
2954 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in psa_sign_hash_builtin() argument
2965 alg, hash, hash_length, in psa_sign_hash_builtin()
2979 alg, hash, hash_length, in psa_sign_hash_builtin()
2991 (void) hash_length; in psa_sign_hash_builtin()
3002 size_t hash_length, in psa_sign_hash() argument
3008 key, 0, alg, hash, hash_length, in psa_sign_hash()
3015 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in psa_verify_hash_builtin() argument
3026 alg, hash, hash_length, in psa_verify_hash_builtin()
3040 alg, hash, hash_length, in psa_verify_hash_builtin()
3052 (void) hash_length; in psa_verify_hash_builtin()
3062 size_t hash_length, in psa_verify_hash() argument
3067 key, 0, alg, hash, hash_length, in psa_verify_hash()
3226 const uint8_t *hash, size_t hash_length) in psa_sign_hash_start() argument
3266 hash, hash_length); in psa_sign_hash_start()
3370 const uint8_t *hash, size_t hash_length, in psa_verify_hash_start() argument
3407 alg, hash, hash_length, in psa_verify_hash_start()
3533 const uint8_t *hash, size_t hash_length) in mbedtls_psa_sign_hash_start() argument
3574 required_hash_length = (hash_length < operation->coordinate_bytes ? in mbedtls_psa_sign_hash_start()
3575 hash_length : operation->coordinate_bytes); in mbedtls_psa_sign_hash_start()
3583 operation->hash_length = required_hash_length; in mbedtls_psa_sign_hash_start()
3593 (void) hash_length; in mbedtls_psa_sign_hash_start()
3636 operation->hash_length, in mbedtls_psa_sign_hash_complete()
3652 operation->hash_length, in mbedtls_psa_sign_hash_complete()
3746 const uint8_t *hash, size_t hash_length, in mbedtls_psa_verify_hash_start() argument
3815 required_hash_length = (hash_length < coordinate_bytes ? hash_length : in mbedtls_psa_verify_hash_start()
3824 operation->hash_length = required_hash_length; in mbedtls_psa_verify_hash_start()
3833 (void) hash_length; in mbedtls_psa_verify_hash_start()
3861 operation->hash_length, in mbedtls_psa_verify_hash_complete()
5122 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_hkdf_read() local
5143 uint8_t n = hash_length - hkdf->offset_in_block; in psa_key_derivation_hkdf_read()
5170 hash_length); in psa_key_derivation_hkdf_read()
5178 hash_length); in psa_key_derivation_hkdf_read()
5214 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_tls12_prf_generate_next_block() local
5230 tls12_prf->left_in_block = hash_length; in psa_key_derivation_tls12_prf_generate_next_block()
5276 status = psa_mac_update(&hmac, tls12_prf->Ai, hash_length); in psa_key_derivation_tls12_prf_generate_next_block()
5283 tls12_prf->Ai, hash_length, in psa_key_derivation_tls12_prf_generate_next_block()
5285 if (hmac_output_length != hash_length) { in psa_key_derivation_tls12_prf_generate_next_block()
5300 status = psa_mac_update(&hmac, tls12_prf->Ai, hash_length); in psa_key_derivation_tls12_prf_generate_next_block()
5313 tls12_prf->output_block, hash_length, in psa_key_derivation_tls12_prf_generate_next_block()
5336 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_tls12_prf_read() local
5368 offset = hash_length - tls12_prf->left_in_block; in psa_key_derivation_tls12_prf_read()