//
// ASN1_digest from 0x860950 to 0x860a10 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x6985c
//
// 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
//
bool __fastcall ASN1_digest(int (__fastcall *a1)(int, void **), int a2, int a3, int a4, _DWORD *a5)
{
void *v9; // r9
void *v10; // r0
void *v11; // r4
_BOOL4 result; // r0
void *v13; // [sp+Ch] [bp-4h] BYREF
v9 = (void *)a1(a3, nullptr);
v10 = CRYPTO_malloc(v9, (int)"crypto/asn1/a_digest.c", 33);
v11 = v10;
if ( v10 )
{
v13 = v10;
a1(a3, &v13);
result = EVP_Digest((int)v11, (int)v9, a4, a5, a2, nullptr);
if ( result )
{
CRYPTO_free(v11, (int)"crypto/asn1/a_digest.c", 42);
return 1;
}
}
else
{
ERR_put_error(13, 184, 65, (int)"crypto/asn1/a_digest.c", 34);
return 0;
}
return result;
}