//
// sub_10AA220 from 0x10aa220 to 0x10aa2b0 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x14103d0
//
// 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:17:37 +0000
//
__int64 __fastcall sub_10AA220(__int64 a1, __int64 a2)
{
__int64 v4; // x2
if ( *(_QWORD *)(a1 + 16) )
{
v4 = DSA_new();
if ( v4
&& (EVP_PKEY_assign(a2, 0x74u, v4), (unsigned int)EVP_PKEY_copy_parameters((_DWORD *)a2, *(_QWORD *)(a1 + 16))) )
{
return DSA_generate_key(*(_QWORD *)(a2 + 32));
}
else
{
return 0;
}
}
else
{
ERR_put_error(10, 121, 107, (__int64)"crypto/dsa/dsa_pmeth.c", 229);
return 0;
}
}