//
// sub_A1D5F8 from 0xa1d5f8 to 0xa1d678 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0xc795c4
//
// 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:53 +0000
//
int __fastcall sub_A1D5F8(int a1, char *a2, char *a3)
{
if ( !a3 )
return 0;
if ( !strcmp(a2, "key") )
return EVP_PKEY_CTX_str2ctrl(a1, 6, a3);
if ( !strcmp(a2, "hexkey") )
return EVP_PKEY_CTX_hex2ctrl(a1, 6, (int)a3);
return -2;
}