//
// sub_E1D394 from 0xe1d394 to 0xe1d480 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132380
//
// 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
//
__int64 __fastcall sub_E1D394(__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;
}