// // PKCS8_encrypt from 0xad0c08 to 0xad0d10 (264 bytes) // // 4 xrefs: // > PKCS12_SAFEBAG_create_pkcs8_encrypt @ 0xa3ab08 // > sub_ACFB28 @ 0xacfb8c // > sub_ACFB28 @ 0xacfc6c // > @ 0x7f3ec // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:09:23 +0000 // _DWORD *__fastcall PKCS8_encrypt( unsigned int a1, int a2, const char *a3, size_t a4, const void *a5, int a6, int a7, size_t *a8) { int *v12; // r5 _DWORD *result; // r0 if ( a1 == -1 ) { v12 = (int *)PKCS5_pbe2_set(a2, a7, a5, a6); } else if ( EVP_PBE_find(1, a1, nullptr, nullptr, nullptr) ) { v12 = (int *)PKCS5_pbe2_set_iv(a2, a7, (int)a5, a6, nullptr, a1); } else { ERR_clear_error(); v12 = PKCS5_pbe_set(a1, a7, a5, a6); } if ( v12 ) { result = PKCS8_set0_pbe(a3, a4, a8, v12); if ( !result ) { X509_ALGOR_free(v12); return nullptr; } } else { ERR_put_error(35, 125, 13, (int)"crypto/pkcs12/p12_p8e.c", 32); return nullptr; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source