//
// SHA256 from 0xddda08 to 0xddda84 (124 bytes)
//
// 2 xrefs:
// > CTLOG_new @ 0xd82f20
// > ??> @ 0xa7148
//
// 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
//
_DWORD *__fastcall SHA256(char *a1, size_t a2, _DWORD *a3)
{
_DWORD *v3; // x19
unsigned int v7[28]; // [xsp+40h] [xbp+40h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_125F210;
SHA256_Init((__int64)v7);
SHA256_Update((__int64)v7, a1, a2);
SHA256_Final(v3, v7);
OPENSSL_cleanse(v7, 0x70u);
return v3;
}