// // EVP_PKEY_derive from 0xdad790 to 0xdad890 (256 bytes) // // 8 xrefs: // > ssl_derive @ 0xd388dc // > ssl_derive @ 0xd38910 // > sub_D60980 @ 0xd60af4 // > tls1_final_finish_mac @ 0xd61548 // > tls1_generate_master_secret @ 0xd61720 // > CMS_RecipientInfo_kari_decrypt @ 0xe1f1dc // > cms_RecipientInfo_kari_encrypt @ 0xe1f688 // > @ 0x8c070 // // 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 EVP_PKEY_derive(__int64 *a1, __int64 a2, _QWORD *a3) { __int64 v4; // x3 __int64 (__fastcall *v5)(__int64 *); // x0 int v6; // w0 if ( a1 && (v4 = *a1) != 0 && (v5 = *(__int64 (__fastcall **)(__int64 *))(v4 + 184)) != nullptr ) { if ( *((_DWORD *)a1 + 8) == 1024 ) { if ( (*(_DWORD *)(v4 + 4) & 2) != 0 ) { v6 = EVP_PKEY_size(a1[2]); if ( a2 ) { if ( (unsigned __int64)v6 > *a3 ) { ERR_put_error(6, 153, 155, (__int64)"crypto/evp/pmeth_fn.c", 293); return 0; } else { return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 184))(a1); } } else { *a3 = v6; return 1; } } else { return v5(a1); } } else { ERR_put_error(6, 153, 151, (__int64)"crypto/evp/pmeth_fn.c", 290); return 0xFFFFFFFFLL; } } else { ERR_put_error(6, 153, 150, (__int64)"crypto/evp/pmeth_fn.c", 286); return 4294967294LL; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source