// // PKCS12_SAFEBAG_create_pkcs8_encrypt from 0x1049a9c to 0x1049b74 (216 bytes) // // 1 xrefs: // > @ 0x5e540 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:16:35 +0000 // _QWORD *__fastcall PKCS12_SAFEBAG_create_pkcs8_encrypt( unsigned int a1, __int64 a2, unsigned int a3, __int64 a4, unsigned int a5, unsigned int a6, __int64 a7) { char *v13; // x0 __int64 cipherbyname; // x1 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x20 _QWORD *v18; // x19 v13 = OBJ_nid2sn(a1); cipherbyname = EVP_get_cipherbyname((__int64)v13); if ( cipherbyname ) v15 = 0xFFFFFFFFLL; else v15 = a1; v16 = PKCS8_encrypt(v15, cipherbyname, a2, a3, a4, a5, a6, a7); v17 = v16; if ( v16 ) { v18 = PKCS12_SAFEBAG_create0_pkcs8(v16); if ( !v18 ) { ERR_put_error(35, 133, 65, (__int64)"crypto/pkcs12/p12_sbag.c", 164); X509_SIG_free(v17); } } else { v18 = nullptr; ERR_put_error(35, 133, 65, (__int64)"crypto/pkcs12/p12_sbag.c", 157); } return v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source