//
// sub_DB26C8 from 0xdb26c8 to 0xdb2844 (380 bytes)
//
// 1 xrefs:
// > ??> @ 0x1125578
//
// 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_DB26C8(__int64 *a1, char *a2, char *a3)
{
__int64 v6; // x0
unsigned int v7; // w1
__int64 v9; // x0
__int64 v10; // x1
if ( !strcmp(a2, "md") )
{
EVP_get_digestbyname((__int64)a3);
return EVP_PKEY_CTX_ctrl(a1, -1, 1024);
}
if ( !strcmp(a2, "salt") )
{
v9 = (__int64)a1;
v10 = 4100;
}
else
{
if ( !strcmp(a2, "hexsalt") )
return EVP_PKEY_CTX_hex2ctrl((__int64)a1, 0x1004u, (__int64)a3);
if ( !strcmp(a2, "key") )
return EVP_PKEY_CTX_str2ctrl((__int64)a1, 4101, a3);
if ( !strcmp(a2, "hexkey") )
{
v6 = (__int64)a1;
v7 = 4101;
return EVP_PKEY_CTX_hex2ctrl(v6, v7, (__int64)a3);
}
if ( strcmp(a2, "info") )
{
if ( strcmp(a2, "hexinfo") )
return 4294967294LL;
v6 = (__int64)a1;
v7 = 4102;
return EVP_PKEY_CTX_hex2ctrl(v6, v7, (__int64)a3);
}
v9 = (__int64)a1;
v10 = 4102;
}
return EVP_PKEY_CTX_str2ctrl(v9, v10, a3);
}