//
// ASN1_digest from 0xe088fc to 0xe089e8 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x72210
//
// 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 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;
}