//
// X509_check_private_key from 0x1064dc8 to 0x1064e78 (176 bytes)
//
// 10 xrefs:
// > SSL_CTX_check_private_key @ 0xfbe074
// > SSL_check_private_key @ 0xfbe0e8
// > sub_FC2264 @ 0xfc22f0
// > sub_FC23F8 @ 0xfc246c
// > SSL_use_PrivateKey @ 0xfc2c48
// > SSL_CTX_use_PrivateKey @ 0xfc3538
// > OCSP_request_sign @ 0x1041a5c
// > PKCS12_parse @ 0x1048ab4
// > CMS_add1_signer @ 0x10a0ba0
// > ??> @ 0xf81a0
//
// 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
//
bool __fastcall X509_check_private_key(__int64 a1, _DWORD *a2)
{
__int64 v2; // x0
int v3; // w0
v2 = X509_get0_pubkey(a1);
if ( !v2 )
{
LABEL_8:
ERR_put_error(11, 128, 117, (__int64)"crypto/x509/x509_cmp.c", 301);
return 0;
}
v3 = EVP_PKEY_cmp(v2, a2);
if ( v3 == -1 )
{
ERR_put_error(11, 128, 115, (__int64)"crypto/x509/x509_cmp.c", 298);
return 0;
}
else
{
if ( v3 )
{
if ( v3 != -2 )
return v3 > 0;
goto LABEL_8;
}
ERR_put_error(11, 128, 116, (__int64)"crypto/x509/x509_cmp.c", 295);
return 0;
}
}