//
// SSL_set_srp_server_param_pw from 0x7b58c4 to 0x7b595c (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x5daec
//
// 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
//
int __fastcall SSL_set_srp_server_param_pw(_DWORD *a1, int a2, int a3, char *a4)
{
int default_gN; // r0
int v8; // r5
int v9; // r0
int v10; // lr
int v12; // [sp+0h] [bp-8h]
default_gN = SRP_get_default_gN(a4);
v8 = default_gN;
if ( !default_gN )
return -1;
a1[127] = BN_dup(*(_DWORD *)(default_gN + 8));
a1[128] = BN_dup(*(_DWORD *)(v8 + 4));
BN_clear_free(a1[134]);
v9 = a1[129];
a1[134] = 0;
BN_clear_free(v9);
v12 = *(_DWORD *)(v8 + 8);
v10 = *(_DWORD *)(v8 + 4);
a1[129] = 0;
if ( SRP_create_verifier_BN(a2, a3, a1 + 129, a1 + 134, v12, v10) )
return 1;
else
return -1;
}