//
// EVP_add_digest from 0x1029ee0 to 0x1029f7c (156 bytes)
//
// 21 xrefs:
// > sub_FDE3E8 @ 0xfde4a4
// > sub_FDE3E8 @ 0xfde4c4
// > sub_FDE3E8 @ 0xfde4cc
// > sub_FDE3E8 @ 0xfde504
// > sub_FDE3E8 @ 0xfde50c
// > sub_FDE3E8 @ 0xfde514
// > sub_FDE3E8 @ 0xfde51c
// > openssl_add_all_digests_int @ 0x10ddf08
// > openssl_add_all_digests_int @ 0x10ddf10
// > openssl_add_all_digests_int @ 0x10ddf30
// > openssl_add_all_digests_int @ 0x10ddf38
// > openssl_add_all_digests_int @ 0x10ddf70
// > openssl_add_all_digests_int @ 0x10ddf78
// > openssl_add_all_digests_int @ 0x10ddfa8
// > openssl_add_all_digests_int @ 0x10ddfb0
// > openssl_add_all_digests_int @ 0x10ddfb8
// > openssl_add_all_digests_int @ 0x10ddfc0
// > openssl_add_all_digests_int @ 0x10ddfc8
// > openssl_add_all_digests_int @ 0x10ddfd0
// > openssl_add_all_digests_int @ 0x10ddfe0
// > ??> @ 0xaca80
//
// 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:16:16 +0000
//
__int64 __fastcall EVP_add_digest(unsigned int *a1)
{
__int64 v2; // x20
__int64 result; // x0
__int64 v4; // x0
unsigned int v5; // w1
__int64 v6; // x0
__int64 v7; // x0
v2 = OBJ_nid2sn(*a1);
if ( !(unsigned int)OBJ_NAME_add(v2, 1, a1) )
return 0;
v4 = OBJ_nid2ln(*a1);
result = OBJ_NAME_add(v4, 1, a1);
if ( !(_DWORD)result )
return 0;
v5 = a1[1];
if ( v5 && v5 != *a1 )
{
v6 = OBJ_nid2sn(v5);
if ( (unsigned int)OBJ_NAME_add(v6, 32769, v2) )
{
v7 = OBJ_nid2ln(a1[1]);
return OBJ_NAME_add(v7, 32769, v2);
}
return 0;
}
return result;
}