//
// CMAC_CTX_new from 0x9edb9c to 0x9edc04 (104 bytes)
//
// 4 xrefs:
// > sub_A874A8 @ 0xa874b0
// > sub_A874CC @ 0xa874d8
// > sub_A87510 @ 0xa8751c
// > ??> @ 0x79aac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:27 +0000
//
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;
}
}