//
// PKCS7_add1_attrib_digest from 0xe66510 to 0xe66590 (128 bytes)
//
// 2 xrefs:
// > PKCS7_dataFinal @ 0xdcda9c
// > ??> @ 0x686d0
//
// 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
//
__int64 __fastcall PKCS7_add1_attrib_digest(__int64 a1, char *a2, int a3)
{
__int64 result; // x0
__int64 v5; // x19
result = ASN1_OCTET_STRING_new();
v5 = result;
if ( result )
{
if ( (unsigned int)ASN1_STRING_set(result, a2, a3) && (unsigned int)PKCS7_add_signed_attribute(a1, 0x33u, 4u, v5) )
{
return 1;
}
else
{
ASN1_OCTET_STRING_free(v5);
return 0;
}
}
return result;
}