//
// DH_get_2048_256 from 0x9f56e0 to 0x9f5750 (112 bytes)
//
// 2 xrefs:
// > sub_A94888 @ 0xa949cc
// > ??> @ 0x7a6bc
//
// 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:07:32 +0000
//
_DWORD *DH_get_2048_256()
{
_DWORD *v0; // r4
int v1; // r0
int v2; // r3
bool v3; // zf
_DWORD *result; // r0
v0 = DH_new();
if ( !v0 )
return nullptr;
v0[2] = BN_dup((int)&bignum_dh2048_256_p);
v0[3] = BN_dup((int)&bignum_dh2048_256_g);
v1 = BN_dup((int)&bignum_dh2048_256_q);
v2 = v0[2];
v3 = v2 == 0;
if ( v2 )
v3 = v1 == 0;
v0[9] = v1;
result = v0;
if ( v3 || !v0[3] )
{
DH_free((int)v0);
return nullptr;
}
return result;
}