//
// CMAC_CTX_new from 0x7d8f9c to 0x7d9004 (104 bytes)
//
// 4 xrefs:
// > sub_8728A8 @ 0x8728b0
// > sub_8728CC @ 0x8728d8
// > sub_872910 @ 0x87291c
// > ??> @ 0x6002c
//
// 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 *CMAC_CTX_new()
{
int v0; // r0
int *v1; // r4
int v2; // r5
v0 = CRYPTO_malloc(136, "crypto/cmac/cmac.c", 49);
v1 = (int *)v0;
if ( !v0 )
return nullptr;
v2 = EVP_CIPHER_CTX_new(v0);
*v1 = v2;
if ( v2 )
{
v1[33] = -1;
return v1;
}
else
{
CRYPTO_free(v1, "crypto/cmac/cmac.c", 54);
return nullptr;
}
}