//
// ASN1_digest from 0x1086bfc to 0x1086ce8 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x99760
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:13 +0000
//
__int64 __fastcall ASN1_digest(int (__fastcall *a1)(__int64, void **), __int64 a2, __int64 a3, __int64 a4, _DWORD *a5)
{
__int64 v10; // x21
void *v11; // x20
__int64 result; // x0
void *v13; // [xsp+58h] [xbp+58h] BYREF
v10 = a1(a3, nullptr);
v11 = CRYPTO_malloc((void *)v10, (__int64)"crypto/asn1/a_digest.c", 33);
if ( v11 )
{
v13 = v11;
a1(a3, &v13);
result = EVP_Digest((__int64)v11, v10, a4, a5, a2, 0);
if ( (_DWORD)result )
{
CRYPTO_free(v11, (__int64)"crypto/asn1/a_digest.c", 42);
return 1;
}
}
else
{
ERR_put_error(13, 184, 65, (__int64)"crypto/asn1/a_digest.c", 34);
return 0;
}
return result;
}