//
// PKCS5_pbe_set from 0xe0f8cc to 0xe0f95c (144 bytes)
//
// 3 xrefs:
// > PKCS12_pack_p7encdata @ 0xe658d4
// > PKCS8_encrypt @ 0xe661a0
// > ??> @ 0x2de88
//
// 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
//
__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;
}