//
// PKCS7_add1_attrib_digest from 0x8bbff8 to 0x8bc05c (100 bytes)
//
// 2 xrefs:
// > PKCS7_dataFinal @ 0x8282f8
// > ??> @ 0x65e2c
//
// 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
//
int __fastcall PKCS7_add1_attrib_digest(int a1, const char *a2, int a3)
{
signed int *v6; // r0
int v7; // r4
v6 = (signed int *)ASN1_OCTET_STRING_new();
v7 = (int)v6;
if ( !v6 )
return 0;
if ( !ASN1_STRING_set(v6, a2, a3) || !PKCS7_add_signed_attribute(a1, (_BYTE *)&word_32 + 1, 4, v7) )
{
ASN1_OCTET_STRING_free(v7);
return 0;
}
return 1;
}