//
// EVP_PKEY_get_default_digest_nid from 0x805a20 to 0x805a50 (48 bytes)
//
// 5 xrefs:
// > EVP_DigestSignInit @ 0x80461c
// > EVP_DigestVerifyInit @ 0x80478c
// > PKCS7_add_signature @ 0x8296e4
// > CMS_add1_signer @ 0x878498
// > ??> @ 0x6399c
//
// 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 EVP_PKEY_get_default_digest_nid(int a1, int a2)
{
int v2; // r2
int (__fastcall *v3)(int, int, _DWORD, int); // r12
v2 = *(_DWORD *)(a1 + 12);
if ( v2 && (v3 = *(int (__fastcall **)(int, int, _DWORD, int))(v2 + 92)) != nullptr )
return v3(a1, 3, 0, a2);
else
return -2;
}