//
// SHA1 from 0xa4a058 to 0xa4a0c0 (104 bytes)
//
// 3 xrefs:
// > sub_A155C0 @ 0xa156d4
// > sub_A155C0 @ 0xa157a8
// > ??> @ 0x7ccac
//
// 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:19 +0000
//
int __fastcall SHA1(void *a1, int a2, void *a3)
{
void *v3; // r4
int result; // r0
_BYTE v6[100]; // [sp+0h] [bp-64h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_D357B4;
result = SHA1_Init(v6);
if ( result )
{
SHA1_Update((int)v6, a1);
SHA1_Final(v3, v6);
OPENSSL_cleanse(v6, 0x60u);
return (int)v3;
}
return result;
}