//
// sub_A8756C from 0xa8756c to 0xa8764c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0xc80f90
//
// 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:08:52 +0000
//
int __fastcall sub_A8756C(int a1, char *a2, char *a3)
{
int cipherbyname; // r3
if ( !a3 )
return 0;
if ( !strcmp(a2, "cipher") )
{
cipherbyname = EVP_get_cipherbyname((int)a3);
return cipherbyname && CMAC_Init(*(int **)(a1 + 20), 0, 0, cipherbyname, *(_DWORD *)(a1 + 4)) != 0;
}
else if ( !strcmp(a2, "key") )
{
return EVP_PKEY_CTX_str2ctrl(a1, 6, a3);
}
else if ( !strcmp(a2, "hexkey") )
{
return EVP_PKEY_CTX_hex2ctrl(a1, 6, (int)a3);
}
else
{
return -2;
}
}