//
// CMS_RecipientInfo_set0_password from 0x109ebb4 to 0x109ec28 (116 bytes)
//
// 2 xrefs:
// > CMS_add0_recipient_password @ 0x109edfc
// > ??> @ 0x6efe0
//
// 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:30 +0000
//
__int64 __fastcall CMS_RecipientInfo_set0_password(__int64 a1, char *a2, size_t a3)
{
__int64 v3; // x19
if ( *(_DWORD *)a1 == 3 )
{
v3 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(v3 + 32) = a2;
if ( a2 )
{
if ( (a3 & 0x8000000000000000LL) != 0 )
a3 = strlen(a2);
}
*(_QWORD *)(v3 + 40) = a3;
return 1;
}
else
{
ERR_put_error(46, 168, 177, (__int64)"crypto/cms/cms_pwri.c", 26);
return 0;
}
}