//
// PKCS7_digest_from_attributes from 0xa3d2e8 to 0xa3d31c (52 bytes)
//
// 2 xrefs:
// > PKCS7_signatureVerify @ 0xa3d544
// > ??> @ 0x7f8dc
//
// 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:08:11 +0000
//
int __fastcall PKCS7_digest_from_attributes(int a1)
{
int attr; // r0
int result; // r0
X509at_get_attr_by_NID(a1);
attr = X509at_get_attr(a1);
result = X509_ATTRIBUTE_get0_type(attr, 0);
if ( result )
return *(_DWORD *)(result + 4);
return result;
}