//
// SRP_Calc_A_param from 0xfdaed0 to 0xfdaf50 (128 bytes)
//
// 2 xrefs:
// > tls_process_server_done @ 0xfca4c0
// > ??> @ 0x6c820
//
// 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
//
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;
}