//
// SHA256 from 0x835e34 to 0x835e98 (100 bytes)
//
// 2 xrefs:
// > CTLOG_new @ 0x7db468
// > ??> @ 0x6046c
//
// 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
//
_BYTE *__fastcall SHA256(char *a1, size_t a2, _BYTE *a3)
{
_BYTE *v3; // r5
int v7[29]; // [sp+0h] [bp-74h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_AD4558;
SHA256_Init(v7);
SHA256_Update(v7, a1, a2);
SHA256_Final(v3, v7);
OPENSSL_cleanse(v7, 0x70u);
return v3;
}