Lines Matching refs:hash_length
317 size_t hash_length, in psa_rsa_decode_md_type() argument
326 if ((int)hash_length > (int)UINT_MAX) { in psa_rsa_decode_md_type()
335 if (mbedtls_hash_info_get_size(*md_alg) != hash_length) { in psa_rsa_decode_md_type()
346 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_rsa_sign_hash() argument
362 status = psa_rsa_decode_md_type(alg, hash_length, &md_alg); in mbedtls_psa_rsa_sign_hash()
381 (unsigned int) hash_length, in mbedtls_psa_rsa_sign_hash()
396 (unsigned int) hash_length, in mbedtls_psa_rsa_sign_hash()
422 size_t hash_length) in rsa_pss_expected_salt_len() argument
430 int hlen = (int) hash_length; // known to fit in rsa_pss_expected_salt_len()
445 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_rsa_verify_hash() argument
461 status = psa_rsa_decode_md_type(alg, hash_length, &md_alg); in mbedtls_psa_rsa_verify_hash()
478 (unsigned int) hash_length, in mbedtls_psa_rsa_verify_hash()
488 int slen = rsa_pss_expected_salt_len(alg, rsa, hash_length); in mbedtls_psa_rsa_verify_hash()
491 (unsigned) hash_length, in mbedtls_psa_rsa_verify_hash()