//
// DH_get_2048_224 from 0x9f5664 to 0x9f56d4 (112 bytes)
//
// 3 xrefs:
// > ssl_get_auto_dh @ 0x9c97d8
// > sub_A94888 @ 0xa9499c
// > ??> @ 0x7748c
//
// 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_224()
{
_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_224_p);
v0[3] = BN_dup((int)&bignum_dh2048_224_g);
v1 = BN_dup((int)&bignum_dh2048_224_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;
}