//
// SRP_Calc_A_param from 0x7b5dc8 to 0x7b5e30 (104 bytes)
//
// 2 xrefs:
// > tls_process_server_done @ 0x7a4118
// > ??> @ 0x5d32c
//
// 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(_DWORD *a1)
{
int v3; // r0
_BYTE v4[52]; // [sp+0h] [bp-34h] BYREF
if ( RAND_bytes(v4, 48) <= 0 )
return 0;
a1[132] = BN_bin2bn(v4, 48, a1[132]);
OPENSSL_cleanse(v4, 48);
v3 = SRP_Calc_A(a1[132], a1[127], a1[128]);
a1[131] = v3;
return v3 != 0;
}