//
// ENGINE_get_digest from 0xd9ee2c to 0xd9eea0 (116 bytes)
//
// 2 xrefs:
// > EVP_DigestInit_ex @ 0xda1864
// > ??> @ 0x4b1c8
//
// 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 ENGINE_get_digest(__int64 a1, unsigned int a2)
{
unsigned int (__fastcall *digests)(__int64, __int64 *, _QWORD, _QWORD); // x4
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
digests = (unsigned int (__fastcall *)(__int64, __int64 *, _QWORD, _QWORD))ENGINE_get_digests(a1);
if ( digests && digests(a1, &v6, 0, a2) )
return v6;
ERR_put_error(38, 186, 147, "crypto/engine/tb_digest.c", 74);
return 0;
}