//
// PKCS7_add1_attrib_digest from 0xad0ff8 to 0xad105c (100 bytes)
//
// 2 xrefs:
// > PKCS7_dataFinal @ 0xa3cef8
// > ??> @ 0x7f8ac
//
// 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:23 +0000
//
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;
}