//
// sub_A0B7F8 from 0xa0b7f8 to 0xa0ba24 (556 bytes)
//
// 3 xrefs:
// > ENGINE_set_default_string @ 0xa0bb84
// > ENGINE_set_default_string @ 0xa0bb98
// > ??> @ 0xa0bc08
//
// 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:43 +0000
//
int __fastcall sub_A0B7F8(const char *a1, size_t a2, int *a3)
{
if ( !a1 )
return 0;
if ( !strncmp(a1, "ALL", a2) )
{
*a3 = ~(~HIWORD(*a3) << 16);
return 1;
}
if ( !strncmp(a1, "RSA", a2) )
{
*a3 |= 1u;
return 1;
}
if ( !strncmp(a1, "DSA", a2) )
{
*a3 |= 2u;
return 1;
}
if ( !strncmp(a1, "DH", a2) )
{
*a3 |= 4u;
return 1;
}
if ( !strncmp(a1, "EC", a2) )
{
*a3 |= 0x800u;
return 1;
}
else if ( !strncmp(a1, "RAND", a2) )
{
*a3 |= 8u;
return 1;
}
else if ( !strncmp(a1, "CIPHERS", a2) )
{
*a3 |= 0x40u;
return 1;
}
else if ( !strncmp(a1, "DIGESTS", a2) )
{
*a3 |= 0x80u;
return 1;
}
else if ( !strncmp(a1, "PKEY", a2) )
{
*a3 |= 0x600u;
return 1;
}
else
{
if ( strncmp(a1, "PKEY_CRYPTO", a2) )
{
if ( !strncmp(a1, "PKEY_ASN1", a2) )
{
*a3 |= 0x400u;
return 1;
}
return 0;
}
*a3 |= 0x200u;
return 1;
}
}