// // SRP_Calc_x from 0xdde7d8 to 0xdde99c (452 bytes) // // 3 xrefs: // > srp_generate_client_master_secret @ 0xd5c9a0 // > SRP_create_verifier_BN @ 0xde00b8 // > @ 0xbead0 // // 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 // unsigned __int64 *__fastcall SRP_Calc_x(_QWORD *a1, const char *a2, const char *a3) { __int64 *v6; // x22 int v7; // w0 int v8; // w3 _BYTE *v9; // x23 void *v10; // x0 unsigned __int64 *v11; // x19 void *v13; // x0 _BYTE v14[24]; // [xsp+48h] [xbp+48h] BYREF if ( a2 == nullptr || a3 == nullptr ) return nullptr; if ( !a1 ) return nullptr; v6 = (__int64 *)EVP_MD_CTX_new(); if ( !v6 ) return nullptr; v7 = BN_num_bits((__int64)a1); v8 = v7 + 7; if ( v7 + 7 < 0 ) v8 = v7 + 14; v9 = CRYPTO_malloc((void *)(v8 >> 3), (__int64)"crypto/srp/srp_lib.c", 128); if ( v9 && (v10 = EVP_sha1(), (unsigned int)EVP_DigestInit_ex(v6, (__int64)v10, 0)) && (strlen(a2), (unsigned int)EVP_DigestUpdate((__int64)v6)) && (unsigned int)EVP_DigestUpdate((__int64)v6) && (strlen(a3), (unsigned int)EVP_DigestUpdate((__int64)v6)) && (unsigned int)EVP_DigestFinal_ex((int **)v6, (__int64)v14, nullptr) && (v13 = EVP_sha1(), (unsigned int)EVP_DigestInit_ex(v6, (__int64)v13, 0)) && (BN_bn2bin(a1, v9), BN_num_bits((__int64)a1), (unsigned int)EVP_DigestUpdate((__int64)v6)) && (unsigned int)EVP_DigestUpdate((__int64)v6) && (unsigned int)EVP_DigestFinal_ex((int **)v6, (__int64)v14, nullptr) ) { v11 = BN_bin2bn(v14, 20, 0); } else { v11 = nullptr; } CRYPTO_free(v9, (__int64)"crypto/srp/srp_lib.c", 149); EVP_MD_CTX_free(v6); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source