//
// SSL_srp_server_param_with_username from 0xfda8bc to 0xfda98c (208 bytes)
//
// 2 xrefs:
// > tls_post_process_client_hello @ 0xfcf8d0
// > ??> @ 0x77650
//
// 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:34 +0000
//
__int64 __fastcall SSL_srp_server_param_with_username(_QWORD *a1, _DWORD *a2)
{
__int64 (__fastcall *v2)(_QWORD *); // x3
__int64 result; // x0
__int64 v6; // x0
__int64 v7; // x0
_BYTE v8[48]; // [xsp+20h] [xbp+20h] BYREF
v2 = (__int64 (__fastcall *)(_QWORD *))a1[100];
*a2 = 115;
if ( !v2 || (result = v2(a1), !(_DWORD)result) )
{
v6 = a1[104];
*a2 = 80;
if ( v6 && a1[105] && a1[106] && a1[111] && (int)RAND_bytes(v8, 48) > 0 )
{
a1[110] = BN_bin2bn(v8, 48, 0);
OPENSSL_cleanse(v8, 48);
v7 = SRP_Calc_B(a1[110], a1[104], a1[105], a1[111]);
a1[107] = v7;
if ( v7 )
return 0;
else
return 2;
}
else
{
return 2;
}
}
return result;
}