//
// cms_DigestedData_create from 0x8cf254 to 0x8cf2d0 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x6bc8c
//
// 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 cms_DigestedData_create(int a1)
{
_DWORD *v2; // r4
_DWORD *v3; // r5
char **v4; // r0
char ***v5; // r7
v2 = CMS_ContentInfo_new();
if ( !v2 )
return nullptr;
v3 = ASN1_item_new((int)&CMS_DigestedData_it);
if ( v3 )
{
v4 = OBJ_nid2obj(0x19u);
v2[1] = v3;
v5 = (char ***)v3[2];
*v2 = v4;
*v3 = 0;
*v5 = OBJ_nid2obj(0x15u);
X509_ALGOR_set_md((_DWORD **)v3[1], a1);
return v2;
}
else
{
CMS_ContentInfo_free(v2);
return nullptr;
}
}