//
// SHA1 from 0x105b4c0 to 0x105b550 (144 bytes)
//
// 3 xrefs:
// > sub_10256E8 @ 0x1025804
// > sub_10256E8 @ 0x1025890
// > ??> @ 0x6bce0
//
// 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:48 +0000
//
void *__fastcall SHA1(void *a1, size_t a2, void *a3)
{
void *v3; // x19
_BYTE v7[96]; // [xsp+40h] [xbp+40h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_1567FD0;
if ( !(unsigned int)SHA1_Init(v7) )
return nullptr;
SHA1_Update((int)v7, a1, a2);
SHA1_Final(v3, v7);
OPENSSL_cleanse(v7, 0x60u);
return v3;
}