//
// sub_A16314 from 0xa16314 to 0xa163bc (168 bytes)
//
// 6 xrefs:
// > ??> @ 0xc79158
// > ??> @ 0xc7918c
// > ??> @ 0xc791c0
// > ??> @ 0xc791f4
// > ??> @ 0xc79228
// > ??> @ 0xc7925c
//
// 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:49 +0000
//
int __fastcall sub_A16314(int a1, int a2, int a3, _DWORD *a4)
{
_DWORD *cipher_data; // r4
switch ( a2 )
{
case 2:
*a4 = *(_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1);
return 1;
case 3:
if ( a3 <= 0 )
return 0;
*(_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1) = a3;
return 1;
case 0:
cipher_data = (_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1);
*cipher_data = 8 * EVP_CIPHER_CTX_key_length(a1);
return 1;
default:
return -1;
}
}