//
// X509_issuer_and_serial_hash from 0x83e69c to 0x83e784 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x66ccc
//
// 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
//
int __fastcall X509_issuer_and_serial_hash(int a1)
{
int *v2; // r4
char *v3; // r6
void *v4; // r0
int v5; // r5
_BYTE v7[16]; // [sp+0h] [bp-10h] BYREF
v2 = (int *)EVP_MD_CTX_new();
if ( v2
&& (v3 = (char *)X509_NAME_oneline(*(_DWORD *)(a1 + 28), 0, 0),
v4 = EVP_md5(),
EVP_DigestInit_ex(v2, (int)v4, nullptr))
&& (strlen(v3), EVP_DigestUpdate((int)v2))
&& (CRYPTO_free(v3, (int)"crypto/x509/x509_cmp.c", 47), EVP_DigestUpdate((int)v2))
&& EVP_DigestFinal_ex((int **)v2, (int)v7, nullptr) )
{
v5 = (v7[2] << 16) | (v7[1] << 8) | v7[0] | (v7[3] << 24);
}
else
{
v5 = 0;
}
EVP_MD_CTX_free(v2);
return v5;
}