//
// HMAC_CTX_new from 0x80901c to 0x809064 (72 bytes)
//
// 12 xrefs:
// > tls_construct_new_session_ticket @ 0x7ac7b4
// > tls_check_serverhello_tlsext_early @ 0x7b0220
// > sub_80897C @ 0x8089ac
// > sub_808A80 @ 0x808ab4
// > HMAC @ 0x809140
// > sub_80B57C @ 0x80b61c
// > PKCS12_gen_mac @ 0x825194
// > PKCS12_verify_mac @ 0x825460
// > PKCS12_set_mac @ 0x8259ac
// > PKCS5_PBKDF2_HMAC @ 0x8b81d8
// > PKCS5_PBKDF2_HMAC @ 0x8b821c
// > ??> @ 0x5d6fc
//
// 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 HMAC_CTX_new()
{
int v0; // r0
int v1; // r4
int v2; // r5
int result; // r0
v0 = CRYPTO_zalloc(148, "crypto/hmac/hmac.c", 126);
v1 = v0;
if ( !v0 )
return 0;
v2 = HMAC_CTX_reset(v0);
result = v1;
if ( !v2 )
{
HMAC_CTX_free(v1);
return 0;
}
return result;
}