//
// EVP_Digest from 0xda1d78 to 0xda1e40 (200 bytes)
//
// 22 xrefs:
// > tls_process_new_session_ticket @ 0xd4a398
// > SCT_CTX_set1_issuer_pubkey @ 0xd84ad4
// > SCT_CTX_set1_pubkey @ 0xd84c1c
// > OCSP_cert_id_new @ 0xdc4554
// > sub_DDE2E0 @ 0xdde3b8
// > SRP_Calc_u @ 0xdde4f4
// > X509_ocspid_print @ 0xde4fb8
// > X509_ocspid_print @ 0xde5060
// > X509_NAME_hash @ 0xde6830
// > sub_DE9EDC @ 0xdea0e0
// > X509_pubkey_digest @ 0xdf0360
// > sub_E01DA4 @ 0xe01e44
// > ASN1_digest @ 0xe08980
// > ASN1_item_digest @ 0xe08a40
// > dsa_builtin_paramgen @ 0xe2a818
// > dsa_builtin_paramgen @ 0xe2a838
// > dsa_builtin_paramgen @ 0xe2ac98
// > dsa_builtin_paramgen2 @ 0xe2b4e8
// > dsa_builtin_paramgen2 @ 0xe2b634
// > RSA_padding_add_PKCS1_OAEP_mgf1 @ 0xe6b15c
// > RSA_padding_check_PKCS1_OAEP_mgf1 @ 0xe6c2ec
// > ??> @ 0x2d780
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall EVP_Digest(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4, __int64 a5, __int64 a6)
{
__int64 result; // x0
__int64 *v11; // x19
_BOOL4 v12; // w20
result = EVP_MD_CTX_new();
v11 = (__int64 *)result;
if ( result )
{
EVP_MD_CTX_set_flags(result, 1);
v12 = (unsigned int)EVP_DigestInit_ex(v11, a5, a6)
&& (unsigned int)EVP_DigestUpdate((__int64)v11)
&& EVP_DigestFinal_ex((int **)v11, a3, a4) != 0;
EVP_MD_CTX_free(v11);
return v12;
}
return result;
}