// // SRP_Calc_x from 0x105cb18 to 0x105ccdc (452 bytes) // // 3 xrefs: // > srp_generate_client_master_secret @ 0xfdacf4 // > SRP_create_verifier_BN @ 0x105e3f8 // > @ 0xf88a8 // // 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:16:48 +0000 // 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