//
// PKCS7_digest_from_attributes from 0x8286e8 to 0x82871c (52 bytes)
//
// 2 xrefs:
// > PKCS7_signatureVerify @ 0x828944
// > ??> @ 0x65e5c
//
// 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_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;
}