//
// DH_get_1024_160 from 0x10065d0 to 0x1006650 (128 bytes)
//
// 3 xrefs:
// > ssl_get_auto_dh @ 0xfd9ccc
// > sub_10A8244 @ 0x10a8388
// > ??> @ 0x96670
//
// 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:15:56 +0000
//
__int64 DH_get_1024_160()
{
__int64 result; // x0
_QWORD *v1; // x19
unsigned __int64 *v2; // x0
result = DH_new();
v1 = (_QWORD *)result;
if ( result )
{
*(_QWORD *)(result + 8) = BN_dup((__int64)&bignum_dh1024_160_p);
v1[2] = BN_dup((__int64)&bignum_dh1024_160_g);
v2 = BN_dup((__int64)&bignum_dh1024_160_q);
v1[8] = v2;
if ( !v2 || !v1[1] || (result = (__int64)v1, !v1[2]) )
{
DH_free((__int64)v1);
return 0;
}
}
return result;
}