// // DH_set0_pqg from 0xd880d4 to 0xd881a0 (204 bytes) // // 4 xrefs: // > tls_process_key_exchange @ 0xd4bf84 // > ssl_get_auto_dh @ 0xd5b9fc // > DSA_dup_DH @ 0xd89b0c // > @ 0xbc568 // // 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 // __int64 __fastcall DH_set0_pqg(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4) { __int64 v5; // x0 v5 = a1[1]; if ( !a2 && !v5 || !a4 && !a1[2] ) return 0; if ( a2 ) { BN_free(v5); a1[1] = a2; } if ( a3 ) { BN_free(a1[8]); a1[8] = a3; if ( a4 ) { BN_free(a1[2]); a1[2] = a4; } a1[3] = (int)BN_num_bits(a3); return 1; } else { if ( a4 ) { BN_free(a1[2]); a1[2] = a4; } return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source