//
// HMAC from 0x102e4c8 to 0x102e5a8 (224 bytes)
//
// 2 xrefs:
// > sub_1030794 @ 0x10307f8
// > ??> @ 0xc40d8
//
// 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:18 +0000
//
void *__fastcall HMAC(__int64 a1, const void *a2, unsigned int a3, __int64 a4, __int64 a5, void *a6, _DWORD *a7)
{
void *v8; // x19
__int64 v10; // x0
_QWORD *v11; // x20
const void *v12; // x1
v8 = a6;
if ( !a6 )
v8 = &unk_1567E20;
v10 = HMAC_CTX_new();
v11 = (_QWORD *)v10;
if ( !v10 )
goto LABEL_11;
v12 = a2;
if ( !a2 && !a3 )
v12 = &unk_1201000;
if ( HMAC_Init_ex(v10, v12, a3, a1, 0) && (unsigned int)HMAC_Update(v11) && HMAC_Final((__int64)v11, (__int64)v8, a7) )
{
HMAC_CTX_free((__int64)v11);
return v8;
}
else
{
LABEL_11:
HMAC_CTX_free((__int64)v11);
return nullptr;
}
}