// // EVP_PKEY_derive from 0x806834 to 0x80693c (264 bytes) // // 8 xrefs: // > ssl_derive @ 0x78f1d8 // > ssl_derive @ 0x78f20c // > sub_7BA004 @ 0x7ba170 // > tls1_final_finish_mac @ 0x7bac64 // > tls1_generate_master_secret @ 0x7bae48 // > CMS_RecipientInfo_kari_decrypt @ 0x8748e4 // > cms_RecipientInfo_kari_encrypt @ 0x874d50 // > @ 0x5aecc // // 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 EVP_PKEY_derive(int *a1, int a2, unsigned int *a3) { int v4; // r0 int (__fastcall *v5)(int *, int, unsigned int *); // r3 unsigned int v8; // r0 if ( a1 && (v4 = *a1) != 0 && (v5 = *(int (__fastcall **)(int *, int, unsigned int *))(v4 + 96)) != nullptr ) { if ( a1[4] == 1024 ) { if ( (*(_DWORD *)(v4 + 4) & 2) == 0 ) return v5(a1, a2, a3); v8 = EVP_PKEY_size(a1[2]); if ( !a2 ) { *a3 = v8; return 1; } if ( v8 <= *a3 ) { v5 = *(int (__fastcall **)(int *, int, unsigned int *))(*a1 + 96); return v5(a1, a2, a3); } ERR_put_error(6, 153, 155, (int)"crypto/evp/pmeth_fn.c", 293); return 0; } else { ERR_put_error(6, 153, 151, (int)"crypto/evp/pmeth_fn.c", 290); return -1; } } else { ERR_put_error(6, 153, 150, (int)"crypto/evp/pmeth_fn.c", 286); return -2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source