//
// PKCS5_pbe_set from 0x108dbcc to 0x108dc5c (144 bytes)
//
// 3 xrefs:
// > PKCS12_pack_p7encdata @ 0x10e38d4
// > PKCS8_encrypt @ 0x10e41a0
// > ??> @ 0x450e8
//
// 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:17:16 +0000
//
__int64 *__fastcall PKCS5_pbe_set(unsigned int a1, int a2, const void *a3, int a4)
{
__int64 *v8; // x0
__int64 *v9; // x19
__int64 v11; // x0
v8 = (__int64 *)X509_ALGOR_new();
v9 = v8;
if ( v8 )
{
if ( !(unsigned int)PKCS5_pbe_set0_algor(v8, a1, a2, a3, a4) )
{
v11 = (__int64)v9;
v9 = nullptr;
X509_ALGOR_free(v11);
}
}
else
{
ERR_put_error(13, 202, 65, (__int64)"crypto/asn1/p5_pbe.c", 87);
}
return v9;
}