//
// PKCS5_pbe_set from 0x867798 to 0x867818 (128 bytes)
//
// 3 xrefs:
// > PKCS12_pack_p7encdata @ 0x8bb3c4
// > PKCS8_encrypt @ 0x8bbc60
// > ??> @ 0x69a7c
//
// 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
//
_DWORD *__fastcall PKCS5_pbe_set(unsigned int a1, int a2, const void *a3, int a4)
{
_DWORD **v8; // r0
_DWORD *v9; // r4
int v10; // r5
_DWORD *result; // r0
v8 = (_DWORD **)X509_ALGOR_new();
v9 = v8;
if ( v8 )
{
v10 = PKCS5_pbe_set0_algor(v8, a1, a2, a3, a4);
result = v9;
if ( !v10 )
{
X509_ALGOR_free(v9);
return nullptr;
}
}
else
{
ERR_put_error(13, 202, 65, (int)"crypto/asn1/p5_pbe.c", 87);
return nullptr;
}
return result;
}