//
// ssl3_finish_mac from 0x7b8978 to 0x7b89ac (52 bytes)
//
// 6 xrefs:
// > dtls1_do_write @ 0x7a50f4
// > dtls_get_message @ 0x7a5bf8
// > ssl3_do_write @ 0x7a62b4
// > tls_get_message_body @ 0x7a6d0c
// > tls_get_message_body @ 0x7a6d60
// > ??> @ 0x5d41c
//
// 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
//
int __fastcall ssl3_finish_mac(int a1, int a2, int a3)
{
int v3; // r3
int v4; // r0
v3 = *(_DWORD *)(a1 + 104);
v4 = *(_DWORD *)(v3 + 216);
if ( v4 )
return EVP_DigestUpdate(v4, a2, a3);
else
return BIO_write(*(_DWORD *)(v3 + 212), a2, a3, v3) == a3;
}