// // EVP_PKEY_keygen from 0x806bb8 to 0x806cb0 (248 bytes) // // 5 xrefs: // > ssl_generate_pkey @ 0x78f04c // > ssl_generate_pkey_curve @ 0x78f114 // > EVP_PKEY_new_mac_key @ 0x806d70 // > cms_RecipientInfo_kari_init @ 0x874af8 // > @ 0x5ae3c // // 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_keygen(_DWORD *a1, int *a2) { int (__fastcall *v3)(_DWORD *); // r3 int result; // r0 int v6; // r4 _DWORD *v7; // r1 if ( !a1 || !*a1 || (v3 = *(int (__fastcall **)(_DWORD *))(*a1 + 32)) == nullptr ) { ERR_put_error(6, 146, 150, (int)"crypto/evp/pmeth_gn.c", 91); return -2; } if ( a1[4] != 4 ) { ERR_put_error(6, 146, 151, (int)"crypto/evp/pmeth_gn.c", 95); return -1; } if ( !a2 ) return -1; if ( *a2 ) { result = v3(a1); goto LABEL_8; } v7 = EVP_PKEY_new(); *a2 = (int)v7; if ( !v7 ) return -1; result = (*(int (__fastcall **)(_DWORD *))(*a1 + 32))(a1); LABEL_8: v6 = result; if ( result <= 0 ) { EVP_PKEY_free(*a2); *a2 = 0; return v6; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source