//
// cms_EncryptedContent_init from 0xae4924 to 0xae4998 (116 bytes)
//
// 3 xrefs:
// > CMS_EnvelopedData_create @ 0xa87a98
// > CMS_EncryptedData_set1_key @ 0xae4a14
// > ??> @ 0x83afc
//
// 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:09:37 +0000
//
int __fastcall cms_EncryptedContent_init(char ***a1, char **a2, const void *a3, void *a4)
{
char **v8; // r0
int v9; // r12
char **v10; // r0
a1[3] = a2;
if ( a3 )
{
v8 = (char **)CRYPTO_malloc(a4, (int)"crypto/cms/cms_enc.c", 171);
v9 = (int)v8;
a1[4] = v8;
if ( !v8 )
return v9;
memcpy(v8, a3, (size_t)a4);
}
a1[5] = (char **)a4;
if ( !a2 )
return 1;
v10 = OBJ_nid2obj(0x15u);
v9 = 1;
*a1 = v10;
return v9;
}