// // EVP_PKEY_decrypt from 0x806480 to 0x8065a0 (288 bytes) // // 6 xrefs: // > tls_process_client_key_exchange @ 0x7ab78c // > sub_8268D4 @ 0x82694c // > sub_8268D4 @ 0x826994 // > CMS_RecipientInfo_decrypt @ 0x8737d0 // > CMS_RecipientInfo_decrypt @ 0x873814 // > @ 0x5d67c // // 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_decrypt(int *a1, int a2, unsigned int *a3, int a4, int a5) { int v6; // r12 unsigned int v10; // r0 int (__fastcall *v12)(int *, int, unsigned int *, int, int); // r12 if ( a1 && (v6 = *a1) != 0 && *(_DWORD *)(v6 + 88) ) { if ( a1[4] == 512 ) { if ( (*(_DWORD *)(v6 + 4) & 2) == 0 ) { v12 = *(int (__fastcall **)(int *, int, unsigned int *, int, int))(v6 + 88); return v12(a1, a2, a3, a4, a5); } v10 = EVP_PKEY_size(a1[2]); if ( !a2 ) { *a3 = v10; return 1; } if ( v10 <= *a3 ) { v12 = *(int (__fastcall **)(int *, int, unsigned int *, int, int))(*a1 + 88); return v12(a1, a2, a3, a4, a5); } ERR_put_error(6, 104, 155, (int)"crypto/evp/pmeth_fn.c", 198); return 0; } else { ERR_put_error(6, 104, 151, (int)"crypto/evp/pmeth_fn.c", 195); return -1; } } else { ERR_put_error(6, 104, 150, (int)"crypto/evp/pmeth_fn.c", 191); return -2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source