//
// sub_A94CDC from 0xa94cdc to 0xa94d70 (148 bytes)
//
// 2 xrefs:
// > ??> @ 0xc81438
// > ??> @ 0xc814a4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:00 +0000
//
int __fastcall sub_A94CDC(int **a1, _DWORD *a2)
{
_DWORD *v4; // r2
if ( a1[2] )
{
v4 = DH_new();
if ( v4 && (EVP_PKEY_assign(a2, **a1, (int)v4), EVP_PKEY_copy_parameters(a2, a1[2])) )
return DH_generate_key(a2[5]);
else
return 0;
}
else
{
ERR_put_error(5, 113, 107, (int)"crypto/dh/dh_pmeth.c", 364);
return 0;
}
}