//
// CMS_RecipientInfo_set0_password from 0xa8aae0 to 0xa8ab60 (128 bytes)
//
// 2 xrefs:
// > CMS_add0_recipient_password @ 0xa8ad40
// > ??> @ 0x83fac
//
// 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:54 +0000
//
int __fastcall CMS_RecipientInfo_set0_password(_DWORD *a1, char *a2, size_t a3)
{
int v3; // r4
size_t v4; // r3
if ( *a1 == 3 )
{
v3 = a1[1];
if ( a2 )
v4 = a3 >> 31;
else
v4 = 0;
*(_DWORD *)(v3 + 16) = a2;
if ( v4 )
a3 = strlen(a2);
*(_DWORD *)(v3 + 20) = a3;
return 1;
}
else
{
ERR_put_error(46, 168, 177, (int)"crypto/cms/cms_pwri.c", 26);
return 0;
}
}