//
// sub_109B694 from 0x109b694 to 0x109b780 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x140f910
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:28 +0000
//
__int64 __fastcall sub_109B694(__int64 a1, char *a2, char *a3)
{
__int64 cipherbyname; // x3
if ( !a3 )
return 0;
if ( !strcmp(a2, "cipher") )
{
cipherbyname = EVP_get_cipherbyname((__int64)a3);
if ( cipherbyname )
return (unsigned int)CMAC_Init(*(_QWORD **)(a1 + 40), 0, 0, cipherbyname, *(_QWORD *)(a1 + 8)) != 0;
return 0;
}
if ( !strcmp(a2, "key") )
return EVP_PKEY_CTX_str2ctrl(a1, 6, a3);
if ( !strcmp(a2, "hexkey") )
return EVP_PKEY_CTX_hex2ctrl(a1, 6u, (__int64)a3);
return 4294967294LL;
}