//
// SRP_Calc_A_param from 0xd5cb7c to 0xd5cbfc (128 bytes)
//
// 2 xrefs:
// > tls_process_server_done @ 0xd4c16c
// > ??> @ 0x4d658
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall SRP_Calc_A_param(_QWORD *a1)
{
__int64 v2; // x0
_BYTE v4[48]; // [xsp+20h] [xbp+20h] BYREF
if ( (int)RAND_bytes(v4, 48) <= 0 )
return 0;
a1[109] = BN_bin2bn(v4, 48, a1[109]);
OPENSSL_cleanse(v4, 48);
v2 = SRP_Calc_A(a1[109], a1[104], a1[105]);
a1[108] = v2;
return v2 != 0;
}