//
// PKCS5_pbe_set from 0xa7c398 to 0xa7c418 (128 bytes)
//
// 3 xrefs:
// > PKCS12_pack_p7encdata @ 0xad03c4
// > PKCS8_encrypt @ 0xad0c60
// > ??> @ 0x834fc
//
// 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:08:46 +0000
//
_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;
}