//
// ASN1_digest from 0xa75550 to 0xa75610 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x832dc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:43 +0000
//
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;
}