//
// ASN1_item_sign from 0x108a718 to 0x108a7fc (228 bytes)
//
// 6 xrefs:
// > OCSP_request_sign @ 0x1041ac4
// > X509_sign @ 0x106e190
// > X509_REQ_sign @ 0x106e1ec
// > X509_CRL_sign @ 0x106e23c
// > NETSCAPE_SPKI_sign @ 0x106e298
// > ??> @ 0xd3b58
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:15 +0000
//
__int64 __fastcall ASN1_item_sign(__int64 a1, __int64 *a2, __int64 *a3, void **a4, __int64 a5, __int64 a6, __int64 a7)
{
__int64 *v12; // x0
__int64 *v13; // x20
unsigned int v14; // w19
v12 = (__int64 *)EVP_MD_CTX_new();
v13 = v12;
if ( v12 )
{
v14 = EVP_DigestSignInit(v12, nullptr, a7, 0, a6);
if ( v14 )
v14 = ASN1_item_sign_ctx(a1, a2, a3, a4, a5, v13);
EVP_MD_CTX_free(v13);
return v14;
}
else
{
ERR_put_error(13, 195, 65, (__int64)"crypto/asn1/a_sign.c", 122);
return 0;
}
}