//
// X509_issuer_and_serial_hash from 0x106486c to 0x1064954 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0xd3ae0
//
// 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:16:52 +0000
//
unsigned __int64 __fastcall X509_issuer_and_serial_hash(__int64 a1)
{
__int64 *v2; // x19
char *v3; // x21
void *v4; // x0
unsigned __int64 v5; // x20
_BYTE v7[16]; // [xsp+30h] [xbp+30h] BYREF
v2 = (__int64 *)EVP_MD_CTX_new();
if ( v2
&& (v3 = (char *)X509_NAME_oneline(*(_QWORD *)(a1 + 48), 0, 0),
v4 = EVP_md5(),
(unsigned int)EVP_DigestInit_ex(v2, (__int64)v4, 0))
&& (strlen(v3), (unsigned int)EVP_DigestUpdate((__int64)v2))
&& (CRYPTO_free(v3, (__int64)"crypto/x509/x509_cmp.c", 47), (unsigned int)EVP_DigestUpdate((__int64)v2))
&& (unsigned int)EVP_DigestFinal_ex((int **)v2, (__int64)v7, nullptr) )
{
v5 = ((unsigned __int64)v7[2] << 16) | ((unsigned __int64)v7[1] << 8) | v7[0] | ((unsigned __int64)v7[3] << 24);
}
else
{
v5 = 0;
}
EVP_MD_CTX_free(v2);
return v5;
}