//
// ENGINE_get_digest from 0x7f8f0c to 0x7f8f7c (112 bytes)
//
// 2 xrefs:
// > EVP_DigestInit_ex @ 0x7fb8b4
// > ??> @ 0x6272c
//
// 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
//
int __fastcall ENGINE_get_digest(int a1, int a2)
{
int (__fastcall *digests)(int, int *, _DWORD, int); // r12
int v6; // [sp+Ch] [bp-8h] BYREF
digests = (int (__fastcall *)(int, int *, _DWORD, int))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;
}