// // i2d_PrivateKey from 0x867474 to 0x867508 (148 bytes) // // 5 xrefs: // > @ 0x6545c // > PEM_write_bio_PrivateKey_traditional @ 0x8236c0 // > i2d_PrivateKey_fp @ 0x848a70 // > i2d_PrivateKey_bio @ 0x848b7c // > @ 0xab86ec // // 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 i2d_PrivateKey(int a1, int a2) { int v2; // r3 int (*v3)(void); // r2 int v6; // r0 int v7; // r5 int v8; // r4 v2 = *(_DWORD *)(a1 + 12); if ( !v2 ) goto LABEL_8; v3 = *(int (**)(void))(v2 + 100); if ( v3 ) return v3(); if ( *(_DWORD *)(v2 + 40) ) { v6 = EVP_PKEY2PKCS8(a1); v7 = v6; if ( v6 ) { v8 = i2d_PKCS8_PRIV_KEY_INFO(v6, a2); PKCS8_PRIV_KEY_INFO_free(v7); return v8; } else { return 0; } } else { LABEL_8: ERR_put_error(13, 163, 167, (int)"crypto/asn1/i2d_pr.c", 31); return -1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source